Uruguay's World Cup campaign came to an abrupt end as goalkeeper Fernando Muslera's howler gifted Spain a 1-0 win in Guadalajara. Alex Baena's weak shot slipped through Muslera's grasp for the only goal, securing top spot in Group H for Spain.
The European champions will now face Austria or Algeria in the next round, avoiding a last 32 showdown against Argentina. Uruguay's defeat allowed debutants Cape Verde to secure second place and a meeting with Lionel Messi and the defending champions.
Two-time winners Uruguay became the highest ranked side to crash out in the group stages, rounding off a miserable tournament for Marcelo Bielsa and his squad.