Spain left Johannesburg with their tails between their legs after falling to a stunning 1-0 loss to South Africa.
The home side were deserving winners at Soccer City, with Vicente del Bosque's side disjointed throughout.
After a first half of few chances, Bernard Parker struck the only goal of the game after latching on to a through ball and finishing well.
Goalkeeper Victor Valdes had entered the game at half-time, but was forced from the pitch with a painful looking knee injury that forced him from the field.
Del Bosque made 10 changes to the side that edged past Equatorial Guinea 2-1 on Saturday. Xabi Alonso was the only man retained, while four of South Africa's XI from their 3-0 triumph over Swaziland were again picked by Gordon Igesund.
Spain looked to exploit the hosts' high defensive line with David Villa finding the net twice in the opening seven minutes - only to see both efforts ruled out by the offside flag.
South Africa grew in confidence after their shaky start and almost took the lead through Oupa Manyisa in the 17th minute.
The Orlando Pirates midfielder picked the ball up 30 yards out and crashed an effort at goal, with his shot deflecting off Sergio Ramos and striking the crossbar.
After a promising start, the half fizzled out into a scrappy affair with Alonso whipping a low free-kick wide and Bongani Khumalo crashing a header past the near post with the last action of the opening period.
Tokelo Rantie blazed a gilt-edged chance over two minutes into the second period, while Andres Iniesta brought a smart save from Khune, but it was the hosts who took a shock lead in the 56th minute.
Thabo Matlaba burst up the left wing before neatly finding Parker, who dinked over substitute goalkeeper Valdes.
A raft of substitutions seemed to have only further dented Spain's fluidity and there was further cause for concern as Valdes was forced off with 15 minutes to go, as he appeared to injure his knee under no pressure from an opponent.
Pepe Reina became Spain's third keeper of the night, after a lengthy delay as South Africa fumed over the visitors' attempts to use a seventh change of the game - the most permitted for a friendly is six.
Del Bosque could only watch on as his side failed to draw level, with Khune denying Raul Albiol's toe-poked effort in the last minute of stoppage time as Spain slipped to their first loss since July's 3-0 Confederations Cup final defeat to Brazil.
for D. Claasen 46'
for B. Khumalo 46'
for A. Jali 50'
for O. Manyisa 63'
for B. Parker 90+3'
|Roma battle past Real Madrid|
|Simeone talks up Hernandez transfer|
|Defensor Sporting 1 Nacional Asuncion 0 (1-2 agg): Visitors into final despite loss|
|United edge Inter on penalties|
|Gerrard: It´s been ´the worst three months of my life´|
|Sabella set to quit Argentina post|
|Toure plans to see out career with City|
|Tevez´s father released after kidnapping|
|Benitez denies Callejon spat|
|Brownhill stunner downs Burnley|
|Sunderland edge out Recreativo|
|Barton and Hoilett earn QPR draw|
|UEFA Champions League Review: Lafata treble puts Sparta in command, Slovan beat Sheriff|
|Gomis opens Swansea account at Exeter|
|Schneiderlin hints at Southampton discontent|
|Scolari makes Gremio return|
|Bojan strike in vain as Schalke beat Stoke|
|Tevez to miss friendly amid kidnap reports|
|Porto sign Jose Angel from Roma|
|UEFA Europa League Preview: Trencin v Hull City|
|Liverpool land Origi|
|UEFA Europa League Preview: Torino return to Europe after 20-year absence|
|Rodriguez and Schneiderlin not for sale, say Southampton|
|Rakitic: Not all about front three|
|Barkley pens new Everton deal|
|Guardiola relishing Chivas friendly|
|Drogba targets Premier League glory|
|Hull make Maguire and Robertson double swoop|
|Perisic blow for Wolfsburg|
|Ibrahimovic scores hat-trick as PSG hammer Kitchee|
|Al-Hilal coach sacked over referee row|
|La Liga boss wants cream of the crop|
|Valencia granted work permit, completes West Ham move|
|Atletico complete deal for Griezmann|
|Reus focused on fitness battle despite ´major European interest´|
|Barcelona announce club-record revenue|
|Bony could be sold for right price, says Jenkins|
|Confidence key for Newcastle, says Taylor|
|Saivet out for four weeks with knee injury|
|Genk part company with Ferrera after just one game of season|
|Gold clarifies Twitter gaffe|
|Vidic adapting to different style at Inter|
|Toulouse bring in Matheus|
|Butragueno backs Rodriguez to cope with pressure|
|Benteke aiming to come back stronger|
|Valdez joins Frankfurt|
|Jovetic ready to shine|
|Simeone hails Griezmann qualities|
|Monk unsure over De Guzman future|
|Benitez: Michu will take time to adjust|
|Diaby confident of staying fit|
|Shaw not fit enough, says Van Gaal|
|MLS Preview: RSL look for attacking spark|
|Monk slaps ´astronomical´ price on Bony´s head|
|Australian clubs looking at Ronaldinho|
|Sinclair enjoying ´one of the best pre-seasons´|
|Spiranovic surgery a success|
|Seattle Sounders 0 Los Angeles Galaxy 3: First-half blitz fires Californians to victory|
|Lemina thrilled with Bielsa effect|
|Bayern´s Green chomping at the bit|
|Palace complete US tour with easy win|
|Carragher: Liverpool didn´t want me|
|Simeone: Atleti´s La Liga triumph was no fluke|
|Sturridge: ´I´ll step up´|
|Van Gaal: Formation gives United flexibility|
|Mathieu insists age is no barrier|
|Martinez the deal sealer, says Besic|
|Coaches embrace blockbuster Serie A start|
|Ronaldinho to leave Atletico Mineiro|
|Lorient capture Ayew|
|Celtic loan Berget, sell Watt|
|Pires signs up for Indian Super League|
|Allegri set for early San Siro reunion in maiden Juve campaign|
|Bakayoko makes Monaco move|
|Bakayoko makes Monaco move|
|Lens granted Ligue 1 place|
|UEFA Champions League Preview: Red-hot Salzburg face Qarabag|
|Parma bring in Cassani from Fiorentina|
|De Vrij set for Lazio|
|BREAKING NEWS: Everton complete Besic signing|
|Kongolo pens Feyenoord extension|
|Redknapp confirms Granero exit|
|Advocaat confirmed as Serbia coach|
|CSL Preview: Henan aim to escape drop zone, Liaoning host Guangzhou RandF|
|Arribas makes Sevilla switch|
|Chambers joins Arsenal|
|Ospina buoyed by Arsenal recruitment|
|Liverpool´s loss is our gain, says Redknapp on Remy|
|Ferdinand: I would still be at United with Giggs in charge|
|Pepe targets Super Cup glory|
|Martinez prioritising striker signing|
|Perez not looking to leave Benfica|
|Klopp itching to work with full Dortmund squad|
|Mourinho: It feels like Drogba never left|
|FIFA asks for FIGC review into alleged racist remark|
|Hull to review Maguire deal|
|Wenger prepared to gamble on Chambers|
|Atletico agree Griezmann deal|
|Irvine planning further striker addition|
|Campbell: Black professionals scared to talk about racism|
|Mata backs Herrera to star in Premier League|
|Injured Rafael returning to Manchester|
|Schmidt demands more from Leverkusen|
|Copa Libertadores Preview: Defensor Sporting banking on home record|
|Remy´s Liverpool move off, confirms Rodgers|
|Inzaghi demands nastiness from Milan|
|MLS Review: Timbers triumph in Montreal, Dallas thwart Vancouver|
|Jovetic ready to lead City line - Pellegrini|
|Lewandowski impresses Ribery, Alaba|
|Colombian Primera A Review: Three clubs remain perfect, Atletico Nacional get off the mark|
|Rodgers: ´We can score goals´ without Suarez|
|Chilean Primera Division Review: Canales brace powers Universidad Chile|
|Atletico Madrid need penalties to edge past Earthquakes|
|Liga MX Review: Monterrey, America stay perfect|
|Paraguayan Primera Division Review: Capiata set pace|
|Brazilian Serie A Review: Cruzeiro win again, Kaka scores|
|Sterling goal sees Liverpool past Olympiacos|
|Peruvian Primera Division Review: Los Caimanes notch maiden win, Inti Gas claim top spot|
|CAF Champions League Review: Zamalek held, Vita Club leave it late|
|Jovetic at the double as Manchester City thrash Milan|