Reigning champions Spain avoided the ignominy of finishing their World Cup campaign bottom of Group B with victory over Australia in Curitiba.
Goals from David Villa, Fernando Torres and Juan Mata prevented La Roja from suffering a third successive loss for the first time since 1991.
Villa scored the opener when he flicked in Juanfran’s cross, before Chelsea’s Torres fired in the second.
Mata slid in the third from fellow substitute Cesc Fabregas’s lofted pass.
The result means Spain finish third in the table with three points after one win and two defeats, while Australia finish bottom.
During the opening 30 minutes, Vicente del Bosque’s Spain played like a side bewildered by the events of their opening two games.
Their play was characterised by misplaced passes, uncertainty in defence and a lack of bite in the final third.
But the reliable Villa, whose inclusion was one of seven changes, eased those concerns with a familiar flicked finish nine minutes before the break to cap a move that was typical of Spain in their glory years of 2008, 2010 and 2012.