The exodus of star basketball players burned the US in the FIBA Basketball World Cup championships.

The Americans lost 89-79 to France in the quarterfinals, ending their World Cup run in China prematurely on Wednesday.

Top American players like LeBron James and Stephen Curry opted not to play in the tournament, while Jayson Tatum and Kyle Kuzma were injured.

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

But 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,” Rudy 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. And 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 Jazz center read what the Jazz guard 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 got minutes 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.

— With AP