Pepe Reina made his World Cup debut as Spain ended Brazil 2014 with a 3-0 win over Australia.
The Liverpool stopper was an assured presence at the back as he played the full 90 minutes in place of Iker Casillas.
After their two opening defeats to Holland and Chile that saw the holders crash out of the tournament, pride was at stake in the final group game.
Spain opened the scoring in the 36th minute when David Villa netted a superb goal on his farewell international appearance when he connected with a fine cross from Juanfran.
Former Red Fernando Torres made it 2-0 after 69 minutes after a sublime pass from Andres Iniesta and Juan Mata sealed the vicrory with a third.