Spain's return to the scene of their 2010 FIFA World Cup triumph was soured by a 1-0 defeat to South Africa on Tuesday.
South Africa deserved to win at Soccer City in Johannesburg, with Vicente del Bosque's side disjointed throughout, rarely testing Itumeleng Khune in the home goal.
After a first half of few chances, Bernard Parker struck the only goal of the game, latching on to a throughball and finishing well, Nacho Monreal unable to save his side, despite an acrobatic attempted clearance.
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 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 be denied 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 that deflected off Sergio Ramos and looped over a stranded Iker Casillas but bounced over via 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 wide of 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 with Monreal unable to prevent the goal.
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, appearing to injure his knee in innocuous circumstances.
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, 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 FIFA Confederations Cup final loss to Brazil.
for D. Claasen 46'
for B. Khumalo 46'
for A. Jali 50'
for O. Manyisa 63'
for B. Parker 90+3'
|Qatar hit back at Dyke|
|Monreal happy at Arsenal|
|Van Persie hints at United exit|
|Zico may run for FIFA presidency|
|Castro: Emery has Napoli offer|
|Schafer finalises Jamaica squad|
|US Soccer, FFA welcome Blatter resignation|
|Blatter decision unrelated to corruption allegations - daughter|
|CONCACAF ready to help rebuild FIFA|
|Champions League Final: Luis Enrique worried about Juve, Italian fan nears end of Berlin bike ride|
|Essien joins Panathinaikos|
|Blatter in profile: A look back on 17 years at the top of world football|
|Demichelis set for international retirement after Copa|
|Football world reacts to Blatter resignation|
|Blackpool turn to McDonald|
|Blatter resignation: How the FIFA scandal unfolded|
|Ancelotti rejects Milan approach|
|Platini: Blatter resignation ´the right decision´|
|Swiss Attorney General: Blatter not under investigation|
|Blatter resignation can inspire FIFA change - Scala|
|Mohsni faces lengthy SFA ban|
|Sepp Blatter: Resignation speech in full|
|Blatter to resign as FIFA president|
|Adkins named Sheffield United manager|
|Juve talks ongoing - Witsel|
|Costa has no intention of leaving Chelsea|
|Ligue 1: Paris Saint-Germain season review - Blanc´s men make history|
|Luis Enrique ´worried´ by Juve|
|Mourinho: Costa happy at Chelsea|
|Mourinho hits out at ´unacceptable´ Loftus-Cheek display|
|Inter an ´option´ for Richards|
|Messi: Off-field relationship with Neymar and Suarez key|
|Remy rifle seals Sydney win for Chelsea|
|Messi could replicate Bilbao goal - Luis Enrique|
|Liverpool mauling a boost in transfer market, says Stoke chairman Coates|
|Adkins: Football can learn a lot from rugby|
|Celtic swoop for City defender Boyata|
|Xavi out to sign off in style at Barca|
|Criscito and Poli leave Italy squad|
|Lacazette plays down ´unfounded´ PSG rumours|
|Lloris: No buy-out clause in Tottenham contract|
|Newcastle released Taylor and Gutierrez in same phone call|
|Alba signs new Barcelona deal|
|Benteke coy on Villa future|
|FIFA denies Valcke involvement in $10million payment|
|Brazil selection never influenced, says technical director|
|Pogba doing ´great things´ and will get better, says Deschamps|
|Bundesliga: Borussia Dortmund season review - Klopp endures rocky farewell|
|Adler ´aged three years´, Labbadia ´extremely proud´ of Hamburg|
|Colombia squad settles in Argentina|
|Balotelli ´a target´ because of Liverpool form - Richards|
|Bosnich: If I´d listened to Terry I would have avoided drugs|
|Luiz Gustavo ruled out of Brazil´s Copa America squad|
|Mexico confirm Copa squad|
|Pogba ´very happy´ at Juve|
|Pogba can be Europe´s greatest - Pirlo|
|Pinedo stays in Argentina, Bolivia captain Raldes in Copa America squad|
|Quinteros cuts Banguera, Hidalgo for Chile showpiece|
|Injured Gonzalez misses Copa America, Venezuela finalise youthful squad|
|Champions League Final: Buffon plays down Juve hopes, Iniesta doubtful|
|Karlsruher 1 Hamburg 2 (2-3 agg): Muller strike ensures survival|
|CONCACAF official Sanz banned by FIFA|
|Gourvennec shuns admirers with Guingamp extension|
|Pastore signs PSG extension|
|Morel swaps Marseille for Lyon|
|Watford sign Austria defender Prodl|
|Monaco confirm Berbatov departure|
|Peru v Mexico: Herrera confident as Copa preparations continue|
|Injury rules Dost out of Netherlands friendlies|
|Koeman must strengthen attack for Europa League challenge - McMenemy|
|Wilshere apologises for Spurs taunts|
|Marchisio: No fear ahead of Barcelona clash|
|Klopp to take break after leaving Dortmund|
|Champions League win would be ´more than extraordinary´ - Allegri|
|Charity calls for education after Leicester ´racist orgy´ claims|
|Taylor agrees Swansea deal|
|Sevilla snare Krohn-Dehli|
|Coloccini hails Gutierrez after ´perfect´ Newcastle finale|
|Benitez excited by Madrid opportunity|
|Sampaoli confirms final Chile squad for Copa America|
|Clement ready to go it alone at Derby|
|Mihajlovic confirms Sampdoria exit|
|Brentford turn to Dijkhuizen|
|Usami, Moto to lead Japan qualifying threat|
|Vieira ´the best bet´ for Newcastle - Bernard|
|´We´ll see what happens with my future´ - De Gea|
|Klinsmann: Guzan will start at Gold Cup|
|Alves wants Barca extension not PSG - Blanc|
|Derby appoint Paul Clement as head coach|
|Karlsruher ´can only win´ - Kauczinski|
|Ronaldinho causes stir with disallowed goal|
|Szczesny plans Arsenal stay|
|Pioli: Lazio deserve Champions League qualification|
|Pablo Aimar makes River Plate return|
|MLS Review: Seattle leave it late against Red Bulls|
|Wenger: Arsenal won´t spend big|
|Police to investigate Rangers-Motherwell fight|
|´I will definitely stay´ at City - Toure|
|Champagne backs Blatter to reform FIFA|
|Honduras 2 El Salvador 0: Penalty, goal and red card to Lozano|
|Mancini wants Icardi to stay|
|Sampdoria set to speak on Mihajlovic future|