A huge second half comeback, behind a 24-2 run, allowed Spain to beat Russia 78-71 and stay in the race for the semi-finals from Group F.
Spain climbed to a 3-2 record and will wait for the future results of the day to know their destiny.
Russia finished the Qualifying Round with an 0-5 record and will play the 9-12 classification games.
After controlling the game for two and a half quarters Russia surrendered in front of a tough Spanish defense, led by Marc Rubio.
The Spanish guard finished the game as the top scorer and rebounder of Spain with 18 and seven. Joaquin Colom added 17 and Victor Claver scored ten.
Alexey Shved and Ilya Syrovatko led Russia with 17 points. Maxim Krivosheev led Russia with 12 points, nine rebounds and four blocks.
Spain came to grab another victory but saw a Russian team playing with no pressure and big fighting spirit.
Russia showed dominance from the start taking a 13-4 lead after a 9-0 run. The difference didn't change much until the end of the first quarter, but starting the second we saw one team on court.
Shved got into the groove as Russia reached a maximum lead of 19, 43-24, close to the half time break.
Spain connected twice from long range before the buzzer to make it just a 14 point difference, and early in the third cut it a little bit more to be just a ten point game, but Russia was still on top.
With 3:10 to go in the third Dmitriy Khvostov made it 58-46 for Russia but from that point on Spain was the only team playing.
Rubio and Xavi Rabaseda with help from Colom led an amazing 24-2 run in nine minutes, all the way to a 70-60 Spanish lead.
With 4:30 minutes to play Russia started to react, but only got as close as three points behind.
Claver with a big bucket under pressure made sure the win will stay on the Spanish side.