A last-gap equaliser helped Spain to a 2-2 draw against Morocco on Monday night and it was also enough to earn them the top spot ahead of Portugal in the fiercely contested Group B.

Because of Iran and Portugal drawing 1-1 in their game, Spain topped the group as they scored more goals than the Portuguese even though the Iberian foes both finished on five points.

Cristiano Ronaldo had a chance to give his team victory but he missed a second half penalty.

READ ALSO: 3 Quick Steps To Get New BOUNCE FOOTBALL Feature

Spain will play Russia in the round of 16, while Portugal takes on Uruguay.