El Tri beat France to a place in the last eight, while Brazil take on Egypt in the next round
Mexico will play South Korea in the quarterfinals of the Olympic Games, after beating South Africa 3-0 in their last group match.
With El Tri’s victory on Wednesday, they are second in the group behind Japan, which reached the top spot after beating France.
France’s 4-0 defeat by Japan was the second time they conceded four goals in the tournament, while Argentina and Germany also failed to make it through the knockout stages.
Who else is in the quarterfinals?
Brazil’s hunt for a second consecutive Olympic gold medal will continue with a quarter-final against Egypt.
The 2016 winners beat Saudi Arabia on Wednesday to finish the Group D points table with seven points, two ahead of Ivory Coast.
That result ensures Dani Alves and Co continue to the knockout phase of the competition and will face the African team, which finished second in Group C.
The tournament host Japan finishes at the top of Group A with a perfect record and beats South Africa, Mexico and France.
They drew with New Zealand, who beat Romania by a goal difference against Group B’s runners-up.
After Spain tops the points table with five points, Spain will take to the Ivory Coast to fight for a place in the last four.
When will the quarterfinals be played?
All matches will be played on Saturday 31 July.
Spain vs Ivory Coast is the first match to start at Miyagi Stadium in Rifu, followed by Japan’s clash with New Zealand. The Brazilian draw follows, then South Korea will tackle Mexico in Yokohama to round off the night.
What is the quarterfinals?
Spain vs Ivory Coast
Japan vs New Zealand
Brazil vs Egypt
South Korea vs Mexico