Spain are through to the quarter-finals of the ongoing Olympic men's football, after drawing 1-1 with Argentina in the last group match on Wednesday afternoon.
The South American nation, which needed a win to progress, exited the competition as a result.
Mikel Merino gave Spain the lead in the 66th minute but were pegged back by an 87th-minute strike by Tomás Belmonte, but could not find the winner as it ended all square.
Elsewhere, Germany were similarly knocked out after drawing 1-1 with Ivory Coast.
Benjamin Henrichs' own goal broke the deadlock in the 67th minute, but Eduard Löwen equalized for the young Germans six minutes later.
The Die Mannschaft could not find the winner as they exited the competition, while Ivory Coast saied into the quarter-finals.
In another match, France received a footballing lesson from hosts, Japan, in a 4-0 drubbing that saw them eliminated.
Takefusa Kubo, Hiroki Sakai, Koji Miyoshi, and Daizen Maeda scored the goals, with France finishing the match with 10 men after Randal Kolo Muani was shown red in the 74th minute.