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'
|Hull City v Sheffield Wednesday: Promotion windfall the prize on offer|
|Lahm eyes Champions League glory with Ancelotti|
|Juventus chief hints at Dani Alves deal|
|Gotze warned he will not be first choice under Ancelotti|
|Courtois: If nothing strange happens, I will continue at Chelsea|
|Vermaelen ´disappointed´ by Barca struggles|
|Higuain and Lamela dream of lifting the Copa America|
|Reborn Torres returns to Milan to complete Atletico´s greatest tale|
|Lukaku offers Everton ultimatum: I want to win trophies!|
|United States v Bolivia: Copa America hosts to fine-tune preparations|
|Zidane has united Real Madrid again - Ramos|
|Mexico v Paraguay: Marquez ready to make the most of ´great opportunity´|
|Coyle leaves Houston Dynamo|
|McLaren could end Mercedes dominance - Alonso|
|Orlando City 2 Philadelphia Union 2: Tribbett rescues point in controversial contest|
|United States 1 Ecuador 0: Last-gasp Nagbe goal lifts hosts in Copa America warm-up|
|Djourou compares Xhaka to Pirlo|
|Gallas ´very proud´ of former boss Ranieri´s title glory|
|Copa America to use goal-line technology|
|Smith likens Postecoglou to Klopp|
|Hart backs Sterling to shine at Euro 2016|
|Giovinco happy in MLS despite Euro 2016 snub|
|Balotelli set for Liverpool return, confirms Berlusconi|
|Atletico must win Champions League - Cerezo|
|Arbeloa: Mourinho didn´t get enough recognition at Madrid|
|Mijatovic: Bale can save Madrid´s season in Champions League final|
|Gallas expects Conte to revive Chelsea|
|Deschamps ´annoyed, but not worried´ by Varane´s absence|
|´Impossible´ to see MSN leaving Barcelona - Bartomeu|
|Thiago pledges future to Bayern|
|AFC Champions League Review: Urawa pay the penalty as Seoul advance|
|Uruguay v Trinidad and Tobago: Sanchez skips final to help Suarez-less La Celeste|
|Benitez ´convinced´ he can win trophies at Newcastle|
|Nigeria v Mali: Moses among many absentees for Super Eagles|
|Benitez to stay at Newcastle|
|Kramaric leaves Leicester for Hoffenheim permanently|
|Neustadter gets green light for Russia Euro 2016 selection|
|Chile v Jamaica: Copa plans crystallize in Vina del Mar|
|Ledley making progress in bid to prove Euro 2016 fitness|
|Gotze returns to Germany training|
|Ronaldo: Madrid would be smart to give me a new deal|
|Varane disappointed by Euros absence|
|Republic of Ireland v Netherlands: O´Neill wants confident display|
|Ronaldo shakes off injury in Real Madrid training|
|Atletico star Griezmann ´listening to different clubs´|
|United States - Ecuador Preview: Klinsmann pins hopes on Yedlin as Copa preparations continue|
|Gold tells Middlesbrough to ´dream on´ over Antonio|
|Schweinsteiger wants Mourinho to spice up Manchester derby|
|England v Australia: All eyes on Rashford debut|
|Aggressive Premier League better for me - Xhaka|
|Schweinsteiger ´right on schedule´ for Euro 2016|
|Darmian relishing Euros after return from injury|
|Northern Ireland v Belarus: Last chance to impress as O´Neill prepares to trim squad|
|Ventura leaves Torino amid Italy talk, Mihajlovic appointed|
|Sevilla confident of keeping Emery|
|Godin wants Atletico to use 2014 defeat as inspiration|
|Xhaka agrees Arsenal move|
|Idolisation of Ibrahimovic warranted Sweden captaincy - Hamren|
|Scholes hopes Mourinho keeps Giggs at Manchester United|
|Gotze snubbing Liverpool will boost Germany - Bierhoff|
|Bosz honoured by Ajax appointment|
|Ramos highlights Griezmann threat|
|Record-chasing Ronaldo and taming the Wolves - Real Madrid´s route to the Champions League final|
|Donnarumma dreams of being Milan captain|
|Koke: History, not revenge motivating Atletico|
|Costa Rica v Venezuela: Hosts ramp up preparations for maiden Copa America tilt|
|Argentina v Honduras: Messi and co warm up for Copa America|
|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|