LONDON -- A U.S.-Spain rematch for the Olympic men's basketball gold medal is now in jeopardy.
Thanks to a stunning comeback, it's Russia, not the Spanish, who won Group B and earned the right to avoid the Americans until the final.
Timofey Mozgov made the tiebreaking dunk with 18 seconds left, Vitaliy Fridzon scored 24 points and unbeaten Russia erased an 18-point deficit to pull out a 77-74 victory on Saturday.
"We won the group today," Russia coach David Blatt said. "It's a good feeling. I'd hoped that we would finish in one of the top three spots, to be honest with you, just so that we could avoid the Americans team in the quarters."
The Russians did even better. Any meeting now -- assuming the Americans win Group A as expected -- wouldn't happen until Aug. 12 in a rematch of the 1972 title game.
"That would be interesting, wouldn't it? It's a long way, though, but again, it'd be interesting," said the American-born Blatt, who angered the Americans two years ago before the teams met in the world basketball championship when he said the Russians' controversial victory in the '72 game was actually fair.
Fridzon, the hero of Russia's victory over Brazil on Thursday, made the clinching free throws with 4.8 seconds left. Anton Ponkrashov scored 14 points and Mozgov had 12 for the Russians, down 20-2 in the first quarter and still trailing by nine with under 4½ minutes left.
"I'm very happy with our team. We've got character," Russia forward Andrei Kirilenko said. "After falling down in the first quarter by 17 points, it's very tough to get back. But I'm happy with what we did. In those games, if you keep grinding, you keep shaving off points one by one, even against a great team like Spain, they got shaken a little bit -- not scared but they started missing shots and making mistakes. We did a good job keeping that aggressiveness."
Pau Gasol scored 20 points for Spain (3-1), but missed the first of two free throws with 5.2 seconds left and the Spaniards trailing by two.
Gasol had 11 points in the first quarter, matching Russia's total in Spain's overpowering start. But the Russians pulled into lead in the third quarter, then had one final rally when they appeared out of it again in the fourth.
The Spaniards, the reigning silver medalists, lost to a team other than the U.S. in the Olympics for the first time since 2000 and now risk having to meet the Americans in the semifinals, pending the result of their final group game Monday against Brazil.
"That lead in the first quarter was not normal, but still we should have been able to hang on to it," Gasol said. "We're leaving with a terrible sensation after this loss and now we have to take care of Brazil to secure the second place in the group."
Russia tied it at 73 on Victor Khryapa's 3-pointer with 1:01 left, then took the lead when Spain somehow lost Mozgov and he was alone under the basket for a dunk. Gasol missed his first free throw with a chance to tie it, and after Fridzon's two free throws, the Spaniards couldn't get a tying 3-point attempt off.
The Russians didn't even need a big game from Kirilenko, who came in second in the tournament with 23.3 points per game but had just eight on 2-of-8 shooting Saturday.
The Spanish, who barely beat Britain on Thursday, came to play with first place at stake, even using star guard Juan Carlos Navarro for just the second time in the Olympics as he recovers from injuries.
Pau Gasol opened the scoring with a three-point play and Marc converted one that made it 10-0 not even two minutes into the game. A jumper by Ponkrashov got Russia on the board, but Spain came back with 10 straight points, opening a 20-2 lead on a jumper by Fernandez with 4:42 remaining in the first quarter.
Spain led 28-11 after one before Russia finally got going in the second. Kirilenko finally scored with a pair of free throws with 5:48 remaining, kicking off a 12-2 run. Fridzon, who hit the winning 3-pointer with 4 seconds left in a victory over Brazil on Thursday, made four straight baskets to pull the Russians within 38-32 with 2:28 to go, and they were down eight at halftime.
Russia finally surged into the lead with a 9-0 run, Fridzon making consecutive jumpers at the end of it to make it 51-47. The Russians were ahead 56-53 headed to the fourth, but Spain seemed back in control when Marc Gasol's jumper made it 69-60 with 4:40 to play.
Russia, which didn't even qualify for the Olympics until a last-chance qualifying tournament in July, closes pool play Monday against Australia before facing the fourth-place team from Group A -- currently Lithuania -- in the quarterfinals.
"Everybody said before the Olympic games, 'how are you going to avoid the American team?' Come on, we're not playing them. We're in a different group. We can't prepare for the American team right now," Kirilenko said. "If we play them, we'll get prepared one day before, get a scouting report and we will talk about them. Right now, I think it is senseless. We have a lot teams in front of us and we have to play them first."
Spain will play Brazil, and assuming the teams enter tied, the loser would actually be in better position in the later rounds. The second-place finisher in Group B would have to face the Americans in the semis, while the third-place team would be on the other side of the bracket.
France 73, Tunisia 69
Kevin Seraphin finished with 10 points for the French, who have bounced back nicely after losing to the U.S. in their opener. France closes pool play Monday against Nigeria before playing in the quarterfinals.
Mohamed Hadidane scored 20 points and Makram Ben Romdhane had 17 for winless Tunisia, which seemed beaten in the third quarter but chipped away and was within single digits for much of the fourth quarter.
Brazil 98, China 59
Marquinhos Vieira scored 14 points and Leandro Barbosa added 13 as Brazil blew out China 98-59 Saturday to reach the quarterfinals.
Brazil never trailed and was never seriously challenged.
Barbosa, who plays for the Toronto Raptors, and Vieira hit back-to-back 3-pointers to give Brazil (2-2) a 25-9 lead at the end of the first quarter.
The Brazilians were up 42-21 at halftime and continued to extend its lead in the second half. China (O-4) could not slow down Brazil's attack. Guilherme Giovannoni drained a 3-pointer to give Brazil a 70-38 lead at the end of the third quarter.
Zhu Fangyu led China with 13.
Argentina 93, Nigeria 79
Luis Scola scored 22 points to help Argentina beat winless Nigeria 93-79 Saturday.
Argentina (3-1) led by as many as 26 before taking a 57-37 lead at halftime.
Nocioni and Leonardo Gutierrez each hit all three of their 3-point attempts as Argentina was eight for 11 from beyond the arc in the first half and made 10 of 16 3-pointers during the game.
Ike Diogu led Nigeria with 16 points and Derrick Obasohan had 15. Nigeria was coming off an 83-point loss to the U.S.
Argentina plays the Americans on Monday.
Australia 106, Britain 75
Patty Mills scored a tournament-high 39 points and Australia beat Britain 106-75 on Saturday to earn a spot in the quarterfinals.
The Spurs guard had 15 points in the third quarter to spark Australia's comeback. Matt Dellavedova made all three of his 3-point attempts in the period as Australia rallied from a 10-point halftime deficit.
Britain, which led by as many as 15 points in the third, trailed 66-60 at the end of the quarter.
But the run was not over.
Australia (2-2) started the fourth with an 18-0 run, which included a pair of Mills' 3-pointers.
Joel Freeland had 16 points for Britain, now 0-4 in its Olympic debut.
Information from The Associated Press was used in this report.