MADRID -- The exodus began with exactly one minute and five seconds left, as the scheduled fiesta unexpectedly turned into a funeral. Spain slipped quietly out of the FIBA Basketball World Cup set in their own country to a chorus of jeers directed, without subtlety, at their head coach, Juan Orenga.

Those who headed disconsolately to the exits before the buzzer signaled the end of the hosts' dreams of lifting the title trophy missed an appropriate exclamation point. With one last free throw, Rudy Gobert, who had tormented the Spaniards all game, sealed France's 65-52 quarterfinal upset over its old rival.

Utah Jazz center Rudy Gobert shut down Spain's All-Star front line. Gonzalo Arroyo Moreno/Getty Images

The 22-year-old 7-footer from Saint-Quentin shut down a team, deemed the only credible challenger to Team USA, with hustle and ample heart, towering in the middle and serving as a totem for a victory that few saw coming.

"We came, we worked a lot in practice, we had nothing to lose," said Gobert, who finished with five points (2-for-4), 13 rebounds and one block. "They had the crowd. We just played hard."

Hard enough to open with an 8-0 run. Tough enough to hold their nerve when Spain rallied in the third quarter after trailing 35-28 at halftime. Ambitious enough to remember the call of their captain Boris Diaw, who told his teammates "not to have any regrets, to give their all and leave everything on the court."

Gobert clearly listened. From a second-quarter dunk on Pau Gasol to almost flawless post play to helping hold two All-Star big men in check, Gobert was everywhere he needed to be. His 13 rebounds were only one fewer than the brothers Gasol and the ineffective Serge Ibaka combined, and a key factor in a 50-28 advantage on the boards.

The young big man's single block of the night, on a Pau Gasol attempt, preempted France's closing 10-0 burst.

"I knew everybody was expecting me to help the team," said Gobert, who averaged 2.3 points and 3.4 for the Utah Jazz last season amid two stints in the D-League. "Everybody knew I could stop them. That was just my mission. Everyone else played great offensively. I just had to stop Pau. He's one of the best players in the world and if you stop him, they're not as strong."

Spain had rolled to six straight victories coming into the game by running opponents into the ground in transition over and over. But even without Tony Parker, the 2013 European champions were able to control the pace. The tempo, deliberately, was decreased.

"The second problem was holding them in the half court," France coach Vincent Collet said. "You cannot stop Pau Gasol all the time but we were digging a lot. We took risks with their group of outside players. We used [Ricky] Rubio's defender to give extra help inside, leaving him open sometimes. We tried to put pressure on their big men every time."

Rubio scored only four points on 1-for-7 shooting and was part of Spain's 2-for-22 effort from 3-point range. The Minnesota Timberwolves point guard simply was outplayed by Thomas Huertel, who scored 10 of his 13 points in the fourth quarter.