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'
|Brazil Serie A Wrap: Fluminense, Vasco relegated as violence mars final weekend|
|Serie A Wrap: Roma back on track, Inter held at home|
|Primeira Liga Wrap: Sporting move top, Olhanense lose again|
|Serie A: Inter 3 Parma 3|
|Peru Primera Division: Real Garcilaso 3 Universitario 2|
|Fan clashes mar Brazilian league fixture|
|Bundesliga Wrap: Wolfsburg win again, Hertha up to seventh|
|Wenger praises Everton performance|
|Martinez delighted with Everton display|
|Eredivisie Wrap: Feyenoord stay in touch with top three, Groningen lose at home|
|UEFA Champions League Preview: Benfica v Paris Saint-Germain|
|Premier League: Arsenal 1 Everton 1|
|UEFA Champions League Preview: Bayern Munich v Manchester City|
|Meulensteen confident over Berbatov future|
|Arsenal to face Tottenham in FA Cup third round|
|Lambert disappointed with refereeing decisions|
|Russian Premier League Wrap: Zenit back on top, Spartak close the gap|
|Leonardo: PSG tried to sign Ronaldo|
|Cocu defiant despite heavy PSV defeat|
|Premier League: Fulham 2 Aston Villa 0|
|Garcia delighted as Roma back on form|
|Paulinho hails Tottenham resilience|
|UEFA Champions League Preview: Manchester United v Shakhtar Donetsk|
|Hughes sees Stoke progression|
|Marcelo tips Kaka for FIFA World Cup recall|
|Pochettino sticks to attacking philosophy|
|Milner bemoans City travel sickness|
|Laudrup looking for striker boost|
|Juve will not miss Pirlo, says Mancini|
|Poyet has own goal concerns|
|Coloccini: We have learnt from our mistakes|
|Buffon fires Hart a World Cup warning|
|Hughton urges Hooper service|
|Hyypia hails ´important´ win over Dortmund|
|Clarke frustrated with penalty decision|
|Moyes confident in Manchester United squad|
|Mourinho: Chelsea are in trouble|
|Six arrested in new match-fixing probe|
|A-League: Melbourne Victory 1 Newcastle Jets 2|
|Allardyce furious with Nolan indiscipline|
|Keller: Korb deserved a red card|
|Balotelli still confident despite late miss|
|Benitez bemoans errors, Guidolin thrilled with draw|
|No worries for Madrid after Copa del Rey draw|
|Son expected goal and victory against Dortmund|
|Paraguay Division Profesional Wrap: Cerro Porteno finish Clausura unbeaten|
|MLS Cup: Sporting Kansas City 1 Real Salt Lake 1 (7-6 on pens)|
|Guardiola thrilled with Bayern´s complete performance|
|Garcia focused on attractive football, Roma´s fans - not Juve|
|Copa del Rey Wrap: Real held, holders Atletico all but through|
|Primeira Liga Wrap: Martinez sends Porto top, Estoril see off Pacos|
|Ligue 1 wrap: Five-star PSG back on track, Lorient march on|
|Eredivisie Wrap: Top three all win, RKC draw|
|Klopp confirms hospital visits for Bender, Sahin|
|Serie A Wrap: Napoli, Milan both held|
|Poyet disappointed by second-half performance|
|Bundesliga Wrap: Bayern, Leverkusen secure wins|
|Balotelli calls for better focus from Milan|
|Allegri blasts Milan after Livorno draw|
|Villas-Boas pleased with efficient Tottenham|
|Scottish Premiership Wrap: No winning start for Inverness boss, Dundee United go third|
|Blanc pleased with PSG response|
|Marseille sack Baup|
|Clarke rues missed chances in West Brom defeat|
|Premier League: Sunderland 1 Tottenham 2|
|Bundesliga: Borussia Dortmund 0 Bayer Leverkusen 1|
|Pulis predicts tricky December for Palace|
|Hughes praises Assiadi impact|
|Ribery glad to be back as Bayern run riot|
|Mackay rues Cardiff´s wastefulness|
|Pellegrini praises Southampton display|
|Chelsea lack killer instinct, Mourinho laments|
|Rodgers lauds prolific Suarez|
|Lallana: Southampton deserved to win|
|Ligue 1: Paris Saint-Germain 5 Sochaux 0|
|Football League Wrap: Notts County, Cheltenham Town clinch wins|
|Championship Wrap: Burnley go top, Derby win fifth in a row|
|Premier League: Liverpool 4 West Ham 1|
|Premier League: Crystal Palace 2 Cardiff City 0|
|Premier League: Stoke City 3 Chelsea 2|
|Premier League: Southampton 1 Manchester City 1|
|Bundesliga: Werder Bremen 0 Bayern Munich 7|
|Moyes confident on United prospects|
|Pardew: Old Trafford win among the best of my Newcastle career|
|FIFA announce World Cup fixture changes|
|Premier League: Manchester United 0 Newcastle United 1|
|Escriba plays down Elche hopes|
|Lambert wary of Meulensteen effect|
|A-League Wrap: Kewell´s Heart held, Mariners down Sydney|
|J.League Wrap: Sanfrecce defend title, Marinos beaten|
|Courbis set for Montpellier job|
|Rosler appointed Wigan manager|
|Poyet: Uruguay will beat England|
|Ferdinand unsure over Moyes´ late selection tactic|
|Win shows squad depth, says Conte|
|Blanc denies PSG defeat was inevitable|
|Barcelona ´obliged to win´, says Martino|
|Unbeaten Bayern streak doesn´t faze Guardiola|
|Gilardino Toronto-bound as Italian MLS legion grows|
|Manaus stadium built for the heat, says sports secretary|
|Valcke: USA, England in tough groups|
|Ranieri admires lowly Ajaccio|
|Copa del Rey Wrap: Barcelona arrest deficit to beat third-tier Cartagena|
|Wenger dismisses complacency fears|