- Oops!Something went wrong.Please try again later.
Ricky Rubio missed a three-point attempt in the final minute as Luka Doncic's Slovenia won a pulsating Olympic men's basketball game 95-87 against Spain and will now face Germany in the quarter-finals.
Spain have the unenviable task of playing reigning champions the United States in the last eight on Tuesday.
France, who inflicted the Americans' first defeat at an Olympics since 2004 in their first game, will play Italy for a place in the semi-finals, and Australia take on Argentina.
Rubio scored 18 points to keep Spain in contention in their final Group C game in Saitama, but the Slovenians were more efficient in the closing stages and closed out the game with a late burst crowned by Edo Muric's three-pointer after Zoran Dragic and Klemen Prepelic had both sunk two free throws.
Dallas Mavericks star Doncic scored a modest 12 points but Denver Nuggets power forward Vlatko Cancar took up the scoring with 22 points.
Rubio had kept Spain in the game on several occasions, scoring a layup with just over a minute remaining in a see-sawing game.
The experienced Minnesota Timberwolves guard then missed a jump shot in the paint, handing the momentum back to the Slovenians.