"The Amazing Race" finale: And the winners are...

Josh and Brent are crowned the winners on the finale of the 21st season of "The Amazing Race."

After three continents, nine countries and more than 25,000 miles, it was time for teams to head for the finish line on this season of "The Amazing Race."

But who won the million dollar prize? (Spoiler alert!)

It was Josh and Brent, a.k.a. the Beekman Boys. Yes, you read that right -- the team that hadn't won a single challenge all season and struggled at points just to stay in the race, stayed calm and steady, as the other teams got frazzled, and were able to finish first.

Here's how it happened:

When Sunday's two-hour finale began, Chippendales Jaymes and James, Texans Trey and Lexie, goat farmers Josh and Brent and twins Natalie and Nadiya (who escaped elimination last week but had a Speed Bump awaiting them) were the only teams remaining.

All four teams took the same flight from Mallorca, Spain, to Barcelona, where they switched to a train that took them to France's Loire Valley. The Texans, twins and Chippendales continued with their alliance, which made no sense now that their strongest competition -- Abbie and Ryan -- were out of the race. Their new agenda: Eliminate the Beekman Boys. Natalie and Nadiya, feeling the pressure of being in last place, were particularly keen to see them go, and made comments about the Beekmans "hanging around for no reason," "coasting through" and "hanging on coattails."

Once in France, the teams loaded a couple of crates into their cars and head to a chateau to find a stone dog that contained their next clue. The next destination was Leonardo da Vinci's final resting place, Chateau d'Amboise, but the twins first had to complete their Speed Bump -- lacing a woman into an 18th-century corset. It didn't take them long, but they still lost precious time. And once they were behind the other teams, the alliance unraveled fast.

The Detour required teams to choose between Chow (cutting up and deboning raw meet to feed hunting hounds) or Plow (using a horse and a traditional plow to make rows in a field).

The twins and Beekmans went for the dogs, and engaged in a lot of trash talking while preparing the dog food. The twins accused Josh of faking his ankle injury (to be fair, he didn't seem to have much trouble running around this week) and the Beekmans kept up the banter once they realized it was distracting the girls, who watched in disbelief as "the gays," as they called them, finished first and sped away.

Teams then went to Bourre to La Cave Des Roches, where mushrooms were on the menu for the Road Block. One team member had to descend into the caves, search for three specific kinds of mushrooms and bring back 10 of each. It was dark in the subterranean cavern and many of the mushrooms looked alike. Some team members got uneasy when the lights went out (Can you blame them?).

The Chippendales and Texans finished and made it to the Pit Stop at Château de Chenonceau in first and second place, respectively. The twins finished the mushroom challenge before the Beekmans and it looked as if their place in the finale was secure, but then they ran into navigation issues and Josh and Brent were able to take the third-place spot. The girls came in fourth and were eliminated, looking sober and quiet as they were told they wouldn't be continuing.