France produced one of the shocks of the FIBA Basketball World Cup, stunning hosts Spain in the quarter-finals on Wednesday.
Spain were expected to provide the biggest challenge to overwhelming favourites United States but they were bundled out by France as the European champions won 65-52 in Madrid.
Trailing by one point heading into the final quarter, France rallied and outscored the Spaniards 23-9 as they booked a semi-final showdown with Serbia.
San Antonio Spurs star Boris Diaw posted a team-high 15 points, while Thomas Heurtel chipped in with 13 points as France avenged last week's 88-64 group-stage defeat.
Pau Gasol had a game-high 17 points and eight rebounds but it was not enough as Spain's bid to become the first host nation to win the World Cup since Yugoslavia in 1970 came to an end.
Juan Carlos Navarro was the only other Spain player to reach double figures, sinking 10 points.
Serbia also exacted revenge, powering past Brazil 84-56 in Wednesday's earlier quarter-final.
Brazil took the honours in the group phase, winning 81-73, but they were no match for the Serbs in the Spanish capital.
Milos Teodosic was the pick of the Serbian players, finishing with a game-high 23 points.
Bojan Bogdanovic (12 points), Nenad Krstic (10 points) and Miroslav Raduljica (10 points) also made it into double figures for the Europeans.
Brazil's performance was summed up by the fact that only two players - Anderson Varejao and Marquinhos Vieira (both 12 points) - made it past the 10-point mark.