Early on the Socceroos had a solid opportunity as Matthew Leckie was able to get through the Spanish defense, and shoot low across the face, but sent his effort wide of goal.
Despite missing that early opportunity Australia were still looking the much more dangerous side, as Spain struggled to keep up with an intense and keen Socceroos outfit.
But soon Spain did figure things out and settle, with David Villa, who will play in Australia next season, taking a shot from the edge of the area but was denied as he shot right at Mat Ryan.
In the 20th minute Spain had another chance as Andres Iniesta sent in a ball for Villa but he sent his effort well side of goal.
But eventually Villa did break through as Iniesta split the Socceroos defense that allowed Juanfran to square for a wide open Villa who scored with a neat back-heel.
Australia made a quick attack from the restart but Adam Taggart proved ineffective as SPain cleared the ball to safety.
Santi Carzola was looking to cut through the Australian defense but Alex Wilkinson was able to cut out the pass, keeping it down to 1-0 at the break.
Taggart saw his World Cup end at half-time as Ben Halloran was brought on in his place, which saw Matt Leckie move to the middle, which lead to a solid start as Leckie’s pace caught spain out but Tommy Oar couldn’t finish.
Just when Australia seemed to be getting control back, Spain came through and made it 2-0 when a great pass from Iniesta set up Fernando Torres who scored a simple goal.
Mark Bresciano came on in the final 20 minutes, in an effort to add some more playmaking flair to the Socceroos but still Spain had the edge.
And so it was that Australia allowed space, which Juan Mata duly took advantage of as Cesc Fabregas slid a ball in which allowed Matta to slide the ball under Ryan for a third.
Australia tired late on and Spain had chances in the final ten minutes but after a tough World Cup campaign, Australia fell 3-0 and both sides saw their tournaments come to an end.