RUSTENBURG, South Africa (AFP) - Liverpool midfielder Xabi Alonso scored off a free kick to give Spain a dramatic 3-2 extra-time victory over South Africa on Sunday in the Confederations Cup third place play-off.
A largely incident-less game sprang to life late in the second half when Bafana Bafana (The Boys) striker Katlego Mphela scored only for another substitute, Daniel Guiza, to strike twice for Spain within 60 seconds.
Mphela struck again three minutes into stoppage time to add 30 minutes on to the match and Spain took the lead again to defeat the host nation for the second time in nine days after a 2-0 group win.
The host nation made one change from the team that held Brazil until two minutes from full-time in the semi-finals with suspended midfield 'enforcer' MacBeth Sibaya back in place of Benson Mhlongo.
Spain reacted to a shock defeat by the United States in the first semi-final with four changes as Raul Albiol, Sergio Busquets, Alvaro Arbeloa and Santi Cazorla came in and Arsenal midfielder Cesc Fabregas was among those rested.
FIFA president Sepp Blatter was present on a sunny winter afternoon in the north-west mining town and Spain were first to threaten with David Villa forcing a spectacular one-hand save from Itumeleng Khune.
South Africa crowd favourite Matthew Booth, whose every touch triggers chants of Booooooooth, let his 'fan club' down on 14 minutes after getting behind the Spanish defence.
Instead of heading to the right of goalkeeper Iker Casillas, the giant central defender could only nod the ball forward and harmlessly wide to the relief of the Euro 2008 champions.
A superb tackle from fullback Tsepo Masilela - a find of the two-week 2010 World Cup dress rehearsal - foiled Liverpool striker Fernando Torres midway through a cagey opening half.
Although South Africa lie 71 places below top ranked Spain they held their own before a crowd packed with vuvuzela-blowing spectators and when Casillas parried a Siphiwe Tshabalala drive, Booth fired the rebound wide.
Brazil-born Bafana coach Joel Santana is a hard man to satisfy and he arose from his touchline chair a couple of minutes before half-time and unleashed a verbal rant at his hard-working, organised team.
Spain midfielder Sergio Busquets was the only player cautioned in the first half and Everton star Steven Pienaar joined him in the notebook of Australian referee Matthew Breeze just after half-time.
Busquets had a goal correctly disallowed with three Spaniards offside and Khune did well to hold an Albert Riera shot as the visitors lifted their game and looked more likely to break the deadlock.
But it was South Africa who took the lead thanks to a brilliant off-the-ball run by Tshabalala, who latched on to a cross and pushed it across the goalmouth for Mphela to control before firing into the roof of the net.
It appeared enough to give South Africa victory until a remarkable end to regular time saw Spain score twice within 60 seconds through Guiza before Mphela levelled.
Guiza fired the ball through a forest of legs and past Khune into the corner for an 88th-minute equaliser and then saw his cross dip behind the goalkeeper into the net.
South Africa may have been stunned but their spirit remained strong and when awarded a free kick well outside the penalty area, Mphela stopped up and drove an unstoppable shot past Casillas.
Spain had a claim for handball inside the penalty area by Mhlongo late in the first period ignored before Alonso curled his free kick around the wall and over Fernando Llorente and Booth into the corner of the net for the winner.
|Coach: Del Bosque|
for Fernando Torres 57'
for David Villa 57'
for Busquets 81'
|Downing talks up Valencia arrival|
|Kramer: ´I can´t remember very much´|
|Peru Primera Division Review: Inti Gas go top, Universitario lose|
|Klose to decide on Germany future|
|Ecuador Primera A Review: Emelec poised for championship|
|Devastated Messi: Golden Ball not important|
|Messi comparison inspired Gotze, says Low|
|Hummels: I´m on another planet|
|Messi named player of the tournament|
|Sabella proud of players, defends Messi|
|Adebayor contracts malaria, out of US tour|
|Lahm ecstatic after World Cup triumph|
|Newcastle complete Cabella deal|
|Mascherano endures World Cup pain|
|2014 FIFA World Cup Final: Player Ratings|
|2014 FIFA World Cup Final: Where the final was won and lost|
|2014 FIFA World Cup Final: New Germany ready to dominate|
|2014 FIFA World Cup Final: Germany 1 Argentina 0 (after extra time)|
|BREAKING NEWS: Germany win World Cup|
|Rousseff thanks Brazil despite World Cup woe|
|Fred ´finished´ with Brazil|
|Manchester City lose to Dundee in pre-season opener|
|Rami keen to restore Milan glories|
|Thai Premier League Review: Muang Thong win again, BEC Tero Sasana pay penalty|
|In-demand Lovren joins Southampton on tour|
|Adidas to stick with Suarez|
|Cesar accepts Brazil career all but over|
|Rodriguez signs new Fiorentina deal|
|UEFA Champions League Preview: Celtic begin campaign, Steaua in Norway|
|K.League Review: Steelers maintain lead as top four all win|
|Suso eager for Liverpool stay|
|McDonald allays West Ham injury fears|
|Basanta urges Argentina to enjoy the moment|
|Schweinsteiger: Germany have big-match experience|
|Vidal relaxed over future|
|Bartomeu drooling over Barca strikeforce|
|Gerrard should remain captain, says Beckham|
|Cafu throws support behind Scolari|
|Sabella warns Argentina|
|MLS Review: Henry, Defoe star, as late goals rain down|
|Klinsmann: Germany are favourites|
|Robben rejects Van Gaal´s United proposal|
|Blind hopes Dutch youngsters stick together|
|Thiago Silva frustrated by failure|
|Adrian leaves Atletico for Porto|
|Van Gaal proud after Dutch win|
|Scolari leaving future up to CBF|
|Mixed emotions for Robben|
|FIFA World Cup: Brazil 0 Netherlands 3|
|Sabella remains unsure of Di Maria fitness|
|Abdennour pleased with friendly workout|
|Halilhodzic to take charge at Trabzonspor|
|Fenerbahce delighted to finally sign Diego|
|Low and Germany ready for finale|
|Lyon agree Rose deal|
|Neymar´s World Cup delights Bartomeu|
|De Laurentiis: Higuain going nowhere|
|Beckham lauds ´amazing´ Messi|
|PSG beat Videoton in seven-goal thriller|
|Horta makes Malaga switch|
|Southampton seal deal for Pelle|
|Barcelona ´convinced´ of reduction in Suarez ban|
|West Ham held by League Two Stevenage|
|Bianchi makes move to England|
|West Ham must be more clinical, says Allardyce|
|Germany experience will count - Lehmann|
|Berahino and Dorrans strike in Albion win|
|Ince settling quickly at Hull|
|Swansea in talks with Napoli over Michu|
|Dodo eyes Champions League with Inter|
|FIFA World Cup Preview: Germany v Argentina|
|Huddlestone out to hit the ground running|
|Pogba not bound for Chelsea - agent|
|Barry feeling fresh with Everton|
|Arteta plays down transfer talk|
|PSV complete De Jong deal|
|Colback excited for busy pre-season|
|Milan and Orlando in talks over Robinho|
|West Brom bring in Pocognoli|
|Maradona: Messi will define World Cup final|
|Rami seals Milan move|
|Kuyt eager to secure third place|
|Rodriguez talks up Real Madrid move|
|Bebe welcomes Benfica link|
|Koeman admits unsettled Lovren could leave|
|FIFA World Cup Final Preview: Argentina face old foes Germany with Brazil´s party in tatters|
|FIFA World Cup Final Preview: Messi aims to cement legacy|
|FIFA World Cup Final Preview: Sabella on the brink of greatness|
|FIFA World Cup Final Preview: Muller seeks to augment outstanding finals record|
|FIFA World Cup Final Preview: Low´s hard work pays off|
|FIFA World Cup Final Preview: The coaches to have tasted glory|
|FIFA World Cup Final Preview: The five most iconic finals|
|FIFA World Cup Final Preview: The five most iconic finals|
|FIFA World Cup Final Preview: Germany´s route to the final|
|FIFA World Cup Final Preview: Brazil 2014 produces moments to remember|
|SJ Earthquakes 1 DC United 2: Johnson, Silva score as Eastern Conference leaders extend advantage|
|Otamendi unfazed by price tag|
|Sam targeting top three with Schalke|
|Rodriguez out for revenge|
|Bruno Alves could leave Fenerbahce|
|Thiago Silva endured sleepless nights|
|Final on enemy soil ´special´, says Zabaleta|
|Arteta: Sanchez signing highlights Arsenal´s ambition|
|Mertesacker demands repeat performance|
|Scolari gets federation backing|
|Balotelli poses with shotgun|
|Lizarazu lauds Argentina´s craftiness|