DONGGUAN, China — The United States has been ousted from medal contention by France at the FIBA World Cup, failing to capture gold at a major international tournament for the first time since the 2006 world championships.

Evan Fournier scored 22 points, Rudy Gobert added 21 points and 16 rebounds and France beat Team USA 89-79 in the quarterfinals on Wednesday, rallying from a seven-point fourth-quarter deficit to pull off the upset.

The U.S. had won 58 consecutive tournament games in FIBA and Olympic competition with NBA players, starting with the bronze-medal game at the 2006 world championships and continuing through every FIBA Americas, World Cup and Olympics event since. The U.S. was bidding to become the first nation to win three consecutive World Cups, after winning three straight Olympic golds in that span.

The best the Americans can do now in China is finish fifth. They’re going home with a berth in the 2020 Olympics secured, but no medal.

“We came here to win gold,” Gobert said. “We knew it wasn’t going to be easy. A lot of people counted us out, but we got the win.”

Gobert said beating the Americans wasn’t the goal — winning gold is.

“It doesn’t mean anything if you don’t win in the end,” Gobert said.

Donovan Mitchell scored 29 points for the U.S., all of them coming in the first three quarters. The Americans came up scoreless on six consecutive possessions down the stretch, the drought that allowed the French to take control of a back-and-forth game for the final time.

Nando De Colo scored 18 for France.

France was up 10 early in the second half. The U.S. went on a 31-14 run over the next 10 minutes to go up by seven. Then the French responded with a 15-2 run over the next five minutes, going up 82-76 on a long jumper by Frank Ntilikina with 2:05 left.

Mitchell had a chance to get the U.S. within two with about a minute left, driving against Gobert — but the France center read what his Utah Jazz teammate was going to do perfectly, swatting the try away.

France had been 0-9 against the U.S. in major international play, most of those outcomes one-sided affairs. But the last meeting between the nations was only a 100-97 U.S. win at the Rio de Janeiro Olympics three years ago, and France returned three players — Gobert, De Colo and Nicolas Batum — who played in that game.

None of the U.S. players who played that afternoon in Rio are on this year’s World Cup team.

France outrebounded the U.S. 21-12 in the first half, Gobert found his way to the line 10 times in the game’s first 20 minutes and the Americans went into the break trailing 45-39. The U.S. had trailed for 8:25 in their first five games combined — and trailed for 11:24 in the first half alone on Wednesday.

Fournier’s layup with 7:33 left in the third gave France a 53-43 lead, and that’s when Mitchell got going.

He had 14 points in the third quarter alone, and his dunk with 2:40 left pulled the U.S. into a 60-60 tie. Marcus Smart made three free throws after getting fouled by Gobert to put the U.S. back on top, and the Americans took a 66-63 lead into the fourth.

But they couldn’t finish it off.

TIP-INS

France:

Team USA:

UP NEXT

France: Faces Argentina in semifinals at Beijing on Friday.

Team USA: Faces Serbia in consolation round at Dongguan on Thursday.