The Czechs seemed to settle for the draw but in 10 minutes' time a mistake from the centre of the Spanish field allowed Josef Štibrányi to face Carmelo's goal and score.
Brazil had to play part of the game with ten players[6] after Pelé tore a thigh muscle midway through the first half.
Spain had control of the game in the first half and took the lead 10 minutes before halftime when Adelardo shot into the bottom corner from twenty meters.
At the beginning of the second half Nílton Santos committed a foul inside the penalty area but the referee being far away from the episode awarded only a free kick to the Spanish team.
In the last 15 minutes of the game Amarildo (who was replacing Pele after the latter was injured in the previous match) scored twice to complete the Brazilian comeback.
Isidoro Díaz equalized after sweeping past two defenders, Alfredo del Águila made it 2-1 before half time.
In the second half Mexicans secured their first World Cup victory with a late penalty converted by Héctor Hernández.