Spain salvaged a modicum of pride from their woeful FIFA World Cup defence by beating Australia 3-0 in Curitiba on Monday.
Vicente del Bosque's men headed into their final group fixture knowing they could no longer reach the knockout stages following defeats to the Netherlands and Chile.
However, goals from David Villa, on his last international appearance, Fernando Torres and substitute Juan Mata ensured Spain at least signed off from the competition with victory, and avoided finishing bottom of Group B.
Spain's famous tiki-taka style has been derided in some quarters following their elimination, while there is also doubt over the future of Del Bosque.
The defending champions were far from their fluent best on this occasion, but still did enough to earn an ultimately comfortable win.
After a slow opening, Spain turned up the tempo and Villa broke the deadlock nine minutes before the break with an improvised flick from close range, giving Australian fans a timely reminder of his talent ahead of his upcoming loan spell in the A-League with Melbourne City.
The impressive Andres Iniesta, collecting his 100th cap, then set up Torres for a second in the 69th minute, before Mata - Villa's replacement - rounded off the scoring late on.
Spain will still leave Brazil knowing they have much to ponder, while Australia can move forward with optimism after drawing plaudits for their plucky performances throughout the tournament.
Villa, Torres and goalkeeper Pepe Reina were handed starts as Spain made a raft of changes, with the much-maligned Iker Casillas and Diego Costa among those dropping to the bench.
Australia showed more attacking vibrancy during a tepid opening, yet it was Spain who fashioned the first chance of note in the 20th minute.
Iniesta worked space on the right and showed great vision to pick out Villa at the back post, only for the forward to lash his volley wide.
Spain began to up the ante thereafter and Iniesta's clever backheel sent Jordi Alba free, but the full-back shot straight at Mat Ryan.
The lively Villa then showed neat trickery to bamboozle Mile Jedinak and fired a teasing cross along the six-yard box that neither Koke nor Torres could connect with.
However, Australia's resistance was broken in the 36th minute.
Iniesta's probing throughball caught Jason Davidson flat-footed and Juanfran got to the right byline before pulling back for Villa, who provided an ingenious close-range flick from behind his standing leg.
Spain struggled to rediscover a high tempo after the break, with several misplaced passes curtailing promising attacks.
The biggest round of applause for the second half was reserved for Villa, who was replaced by Mata shortly before the hour mark, the 32-year-old shaking his head as he emotionally exited the pitch before burying his head in his hands on the substitutes bench.
Spain's control of possession provided a second with just under 20 minutes remaining.
Iniesta was once again the architect with a defence-splitting pass that Torres collected on the left of the box before calmly slotting right-footed into the far corner.
Further gloss was added to the scoreline in the closing stages when substitute Cesc Fabregas picked out Mata in the penalty area, and the Manchester United man slipped the ball under goalkeeper Ryan.
|Coach: A. Postecoglou|
for A. Taggart 46'
for T. Oar 61'
for O. Bozanić 72'
|USA will win a World Cup, says Donovan|
|Pumas UNAM 2 Independiente del Valle 1 (3-3 agg, 3-5 on penalties): Hosts suffer shoot-out heartbrea|
|Gracia leaves Malaga as Rubin Kazan loom|
|Messi: Argentina deserve to be Copa America champions|
|Dybala included in Argentina´s preliminary Olympics squad|
|Mourinho and United a ´good wedding´ - Ancelotti|
|Klinsmann: Copa America better than Euros|
|Messi: Joining Barcelona not an easy decision|
|Carrico receives four-game ban for homophobic slur|
|Dani Alves wants Atletico to win Champions League|
|McNair out to impress ´world-class´ Mourinho|
|Ranieri: Premier League survival is Leicester´s priority next season|
|Argentina forward Lavezzi suffers hamstring scare|
|Koeman talks ´very positive´, say Southampton|
|Rami replaces injured Varane in France´s Euro 2016 squad|
|Matthaus applauds Gotze for rejecting ´easy solution´ of Liverpool|
|Suarez silenced his doubters - De Boer|
|AFC Champions League Review: Jeonbuk, Shanghai SIPG progress|
|Klopp can take Liverpool right to the top, says McAllister|
|Lindelof happy at Benfica amid Real Madrid, Barcelona links|
|Zidane is perfect on and off the pitch - Lippi|
|Bale: Zidane has brought the best out of Real Madrid|
|Favre takes over as Puel and Nice part ways|
|Liverpool complete Karius deal|
|Van Gaal was treated poorly by United, but Mourinho will be a success - De Boer|
|Dani Alves: I have won more titles than Pele|
|I know who I´m taking - Conte sure on Euro 2016 selection|
|Xavi backs Guardiola to ´change the face of English football´|
|Lucescu appointed Zenit boss|
|Manchester United and Liverpool hit with €40,000 fines|
|Weinzierl: I have nothing to lose at Schalke|
|Rangers complete Barton signing|
|Italy better placed as underdogs ahead of Euro´s - Motta|
|Cantona: I love Mourinho, but he is not Manchester United|
|Ben Arfa wants Lyon move - Aulas|
|David Silva praises Iniesta´s Copa del Rey heroics|
|´It was a little scare´ - Ronaldo plays down injury fears|
|Eder the real deal for Lille|
|Van Gaal treated unfairly during Manchester United spell - Daley Blind|
|Ginola doing ´very well´ after heart surgery|
|Depay rules out Manchester United exit following Van Gaal departure|
|Hojbjerg confirms desire to leave Bayern|
|Ronaldo leaves Madrid training early after knock|
|Abbiati unimpressed with Milan players´ attitude|
|Pepe calls on Madrid to continue making history|
|Ayestaran signs two-year deal with Valencia|
|Montolivo, Antonelli sign new AC Milan contracts|
|Ronaldo ready for UCL final after being rested from practice match|
|Hummels, Sanches deals will not stop Bayern spending - Rummenigge|
|Oblak´s penalty heroics, Griezmann´s Barcelona brace - Atletico Madrid´s route to the Champions Leag|
|Salvio all but confirms Gaitan will join Atletico Madrid|
|Motta warns PSG over Ronaldo, Neymar interest|
|Europa League Mourinho´s best hope for United trophy - Sheringham|
|Injustice if Iniesta never wins a Ballon d´Or - Del Bosque|
|Van Gaal didn´t deserve United sacking - Blind|
|I´ll be happy if we make Euro 2016 semi-finals - Del Bosque|
|Koke: Why would I want to leave Atletico?|
|Fofana could retire aged 25 - Lyon president|
|Sandro set to leave Barcelona|
|Silva plays down injury worries ahead of Euro 2016|
|United would be brave to appoint Mourinho, says Schmeichel|
|Neymar adamant he is happy at Barcelona|
|Wilshere: Arsenal play me out of position|
|Ryan backs former coach Neville|
|Keane talks up Galaxy move for Ronaldo|
|´Free agent´ Diarra wants Mourinho reunion|
|Eintracht Frankfurt beat Nuremberg to secure Bundesliga status|
|Manchester United to turn to Mourinho, the man who most resembles Ferguson|
|Manchester United kids are Van Gaal´s legacy - Ferdinand|
|´Sex-masochism´, ´fat man´ and ´Mr Mike Smalling´ - Van Gaal´s best quotes as Manchester United mana|
|I have fulfilled a long-held ambition - ´Very disappointed´ Van Gaal´s statement in full|
|Van Gaal should call time on career after Manchester United sacking|
|Better than Busby? - The stats behind Van Gaal´s United exit|
|Van Gaal sacked by Manchester United|
|Suarez expected to miss Copa America group stage|
|Herrera wants more trophies with Manchester United|
|FIFA sacks deputy secretary general Kattner|
|Asensio wants to fight for his chance at Real Madrid|
|SFA to investigate Rangers-Hibernian disorder|
|Van der Wiel takes aim at Blanc after PSG exit|
|Halilovic: Missing Euro 2016 would not be a tragedy|
|Van Gaal leaves United training ground as Mourinho speculation goes on|
|Zanetti rules out Inter move for Simeone|
|Rodgers adamant Celtic is not a step down|
|Sanches chose Bayern Munich over Manchester United|
|Rosicky was the perfect player for Arsenal - Wenger|
|Tonelli becomes Napoli´s first close-season signing|
|Thigh injury rules Steffen out of Euro 2016|
|Gotze is a perfect fit for Liverpool - Hitzfeld|
|Hummels completes Bayern move after passing medical|
|Guardiola era has been sensational - Neuer|
|Bayern will never sign a Messi or Ronaldo - Hitzfeld|
|Wilkins backs Mourinho appointment|
|Suarez´s Copa America hopes alive despite hamstring injury|
|Delneri exits Verona following relegation|
|Ireland´s Wilson ruled out of Euro 2016|
|Gotze looking forward to new season with Bayern|
|Pirlo, Giovinco out of Italy Euro 2016 squad|
|Coleman signs new Wales contract|
|Gotze talk intensifies as Bayern Munich forward leaves agent|
|Rami called up by France following Varane injury|
|United States v Ecuador: Klinsmann pins hopes on Yedlin as Copa preparations continue|
|Gabriel, Lucas Lima unsure on Santos futures|
|AC Milan to terminate Mihajlovic deal in June|
|Emery confirms Banega will leave Sevilla|
|Neville still unsure over Valencia future|
|Van Gaal arrives at United training ground amid Mourinho talk|
|Messi: We suffered but we won together|
|Evra confirms two-year Juventus deal|
|Son unfazed by Tottenham exit rumours|
|Argentine footballer dead after being struck in head|
|Arnautovic refuses to commit to Stoke|
|Sirigu: PSG wanted me out|
|MLS Review: Galaxy held by Earthquakes, Timbers end skid|
|Alba: Messi deserves credit for my goal|
|Pique: Barca deserved Copa del Rey title|
|Smalling admits relief after Lingard winner|
|Suarez, Barca unsure on extent of injury|
|Luis Enrique revels in Barca´s spectacular end to season|
|Emery proud in Copa del Rey defeat|
|Rooney hopes FA Cup lifts United - with or without Van Gaal|
|Iniesta: Copa del Rey win caps magnificent season|
|Barcelona 2 Sevilla 0 (AET): Alba and Neymar decide heated Copa del Rey final|