Goals from David Villa, Fernando Torres and Juan Mata ensured a third-place finish for Spain in Group B, while the Socceroos finished at the bottom with zero points.
Chances were few and far between in the first half, with Australia lacking a considerable attacking presence in the absence of their talismanic forward Tim Cahill, who was suspended for the game.
Spain took the lead after a neat move involving Andres Iniesta and Juanfran was finished off by an inventive flick from Villa, which beat a sprawling Matthew Ryan.
Vicente del Bosque’s side, who have never lost three World Cup group stage games, doubled their lead on the 69th minute when Iniesta split the Socceroos’ backline to find Torres, who tucked away a confident finish.
Substitute Mata completed a comfortable win after slotting in a third with less than ten minutes to go, securing victory over a tired Australian side.