David Villa was selected to start his last international match for Spain, which was using mostly backup players against Australia in a World Cup Group B match between two teams already out of contention in Brazil.
Villa was aiming to add to his record tally of 58 goals in his 97th — and final — appearance for Spain, which exits after a disappointing World Cup defense that opened with losses to Netherlands and Chile.
Andres Iniesta earns his 100th cap for Spain, with goalkeeper Pepe Reina making his World Cup as a replacement for captain Iker Casillas.
Defenders Raul Albiol and Juanfran Torres, midfielders Santi Cazorla and Koke, and striker Fernando Torres were all starting for the first time in Brazil.
Adam Taggart replaces suspended forward Tim Cahill in the Australia lineup.
Australia: Mat Ryan, Ryan McGowan, Jason Davidson, Matthew Spiranovic, Alex Wilkinson, Matt McKay, Mile Jedinak, Oliver Bozanic, Tommy Oar, Matthew Leckie, Adam Taggart.
Spain: Pepe Reina, Sergio Ramos, Raul Albiol, Jordi Alba, Juanfran Torres, Koke, Xabi Alonso, Santi Cazorla, Andres Iniesta, Fernando Torres, David Villa.