Raja Casablanca booked their place in Saturday's FIFA Club World Cup final against Bayern Munich with a 3-1 win over Atletico Mineiro.
Mouhssine Iajour, Mohsine Moutaouali and Vianney Mabide scored the decisive goals for the Moroccan champions on home soil as Casablanca upset their South American opponents with a famous victory on Wednesday.
Ronaldinho had brought the sides level just after the hour with a trademark free-kick, but it was not enough as Moutaouali's late penalty and Mabide's 94th-minute effort sparked wild celebrations.
Casablanca named the same side that beat Monterrey in the quarter-final, while Atletico had Jo and Diego Tardelli in their starting line-up alongside Ronaldinho.
Jo and Ronaldinho both had chances to open the scoring for the visitors in the first half, but lacked accuracy in their finishing and failed to test Khalid Askri in the Casablanca goal.
The hosts struggled to get a foothold in the game and had to settle for rare counter-attacks through Moutaouali and Chem-Eddine Chtibi, although neither were able to produce a clear-cut opportunity.
Casablanca took the lead with a swift break out of defence after soaking up more pressure early in the second half.
Abdelilah Hafidi brought the ball out from the back and played a defence-splitting pass for Iajour to race onto before the striker composed himself and fired low into the bottom corner beyond Victor.
The hosts thought they had a second minutes later when Moutaouali played a ball across the six-yard box, but Hafidi had moved too early and was offside as he tapped into the empty net.
Atletico levelled just after the hour through Ronaldinho as the 33-year-old curled a trademark free-kick over the wall and into the back of the net.
Casablanca then took the lead again with seven minutes to play as Rever brought down Iajour. The defender was adjudged to have tripped the forward as he broke into the penalty area and Moutaouali converted from the spot.
Mabide made sure of the win in stoppage time, the substitute firing home left footed from the edge of the penalty area.
|3||Z. El Hachimi|
|Coach: F. Benzarti|
for C. Chtibi 55'
for A. Hafidi 76'
for M. Iajour 87'
|Vardy hits back at Leicester critics after sinking Liverpool|
|Leicester City 3 Liverpool 1: Vardy at the double in reminder of Ranieri´s glory|
|Srivaddhanaprabha: Leicester players not behind Ranieri sacking|
|Juventus without trio for Napoli semi-final|
|AFC Champions League Review: Lokomotiv score after 19 seconds, Lekhwiya grab draw|
|Kane could break Shearer´s record, says Spurs legend Mabbutt|
|Manchester City miss leader Hart - Wilson questions Guardiola call|
|Iniesta hoping for Luis Enrique stay at Barcelona|
|Atletico´s Hernandez given community service after domestic violence charge|
|Man of the moment Gabbiadini has ´no hard feelings´ towards Napoli|
|Spanish? I struggled with Italian! – Allegri reacts to Barcelona rumours|
|Gotze ruled out for unknown period with ´metabolic disorders´|
|Rabiot would have to consider Real Madrid offer|
|Isco and Morata deserve more minutes, concedes Zidane|
|Imagine if they didn´t let Messi and Neymar in! - Aurier episode sparks UEFA chief´s Brexit concerns|
|Ibrahimovic is ´running Manchester United dressing room´|
|New Everton Lukaku contract ´99.99999999 per cent done´|
|Ibrahimovic: Manchester United future does not depend on Champions League qualification|
|Allegri expecting ´angry´ Napoli|
|Ferguson disagreed with the world on Pogba´s value, says Raiola|
|Wolfsburg hire Arsenal academy boss Jonker as head coach|
|Raiola refuses to confirm Ibrahimovic will stay at Manchester United|
|Donnarumma deserves to play in a great team - Agent|
|Le Tissier: Man United would not have had Gabbiadini strike disallowed|
|Riviere - We do not regret Balotelli signing|
|Tianjin Quanjin tore up agreement to sign Falcao|
|PSV keeper Zoet bemoans Feyenoord´s ´f***** up´ Hawk-Eye winner|
|Ibra revels in trophy-winning exploits - but did he take a dig at Arsenal?|
|Evra: We disrespected Marseille after Le Classique humiliation|
|Marcelo: LaLiga in Real Madrid´s hands|
|Garitano sacked by LaLiga strugglers Deportivo|
|Klopp talks down player power|
|Dembele worth £50m and good enough for Real Madrid – Gamboa|
|´It´s very painful´ - Tadic heartbroken after final loss|
|´I was really upset´ – Fabregas struggled with lack of playing time|
|Cerezo: Torres renewal? We´re trying to bring Messi to Atletico|
|´He had the aura and confidence´ – Neville compares Ibrahimovic to Cantona|
|Neymar: Barca not thinking of Madrid or LaLiga rivals|
|Everything´s a plot against him - Ramos laughs off Pique theory|
|Wolfsburg part ways with Ismael|
|Lingard loving every minute of Wembley scoring streak|
|Pioli rues setback in Inter´s quest for Champions League|
|Zidane cools fresh Bale injury worries after stunning Real Madrid comeback|
|Pique fumes as Real Madrid benefit from controversial decision|
|Emery warns PSG against complacency|
|Gabbiadini scored three times, says frustrated Puel|
|Real Madrid equal longest scoring streak in Spanish history|
|Roma are fed up - Spalletti hits back amid penalty controversy|
|Lyon´s Memphis Depay revels in two-goal performance|
|Marseille 1 Paris Saint-Germain 5: Record crowd sees OM thrashed|
|Villarreal 2 Real Madrid 3: Bale, Ronaldo and Morata complete stunning turnaround|
|Inter 1 Roma 3: Nainggolan at the double in dominant display|
|Ronaldo spot on as he takes LaLiga penalty record|
|Mourinho: Fans will camp at Ibrahimovic´s house to make sure he stays!|
|Late Barca defeat leaves Simeone with sense of deja vu|
|It is not easy to keep winning – Mourinho emotional after Manchester United success|
|Mourinho: Outstanding Ibrahimovic won us the cup|
|Pogba: That´s why Ibrahimovic came here|
|Ibrahimovic hails his predictive powers after sealing EFL Cup triumph|
|He´s incredible - Carrick hails Ibrahimovic impact after EFL Cup win|
|Mourinho equals Clough and Ferguson record with EFL Cup triumph|
|Manchester United 3 Southampton 2: Ibrahimovic settles thrilling final|
|Lewandowski focused on writing his own Bayern history after Gerd Muller comparisons|
|Muller: Goals aren´t everything for me|
|Bacca goal should not have stood – Montella|
|Kane one of the top strikers in the world - hails Pochettino|
|Messi celebrates 400th win with Barcelona|
|Atletico Madrid 1 Barcelona 2: Messi leaves it late again to stun hosts|
|Leicester should have to play without a manager, blasts Mihajlovic|
|What a first half! - Record-breaking Kane lauds Tottenham display|
|Fabregas ´humbled and proud´ after 300th Premier League game|
|Sassuolo 0 AC Milan 1: Controversial Bacca penalty proves decisive|
|Zarate confirms ACL injury|
|Bayern Munich deny Eberl approach|
|Rooney on bench for EFL Cup final|
|Tottenham 4 Stoke City 0: Kane hat-trick sends Pochettino´s side second|
|Norwich City 1 Ipswich Town 1: Knudsen and Bialkowski frustrate Neil´s men|
|´No regrets´ for Ben Yedder after rejecting PSG move|
|Mignolet: Liverpool harder to stop now than with Suarez|
|O´Neill rules out taking Leicester job and questions players´ attitude|
|´Uncle´ Toure still uncertain on Manchester City future|
|Mourinho already knows next Manchester United transfer targets|
|Newcastle Jets 1 Central Coast Mariners 1: Honours even in F3 Derby|
|Half a century of Kazuyoshi Miura: Japanese legend plays on 50th birthday|
|´Criminal´ if Shaw doesn´t succeed at United - Neville|
|Kaka scores first goal in Orlando City´s new stadium|
|Conte lauds Chelsea´s milestone man Fabregas|
|Pochettino questions readiness in Tottenham´s trophy quest|
|Mata wants to extend Manchester United contract|
|Mourinho is a winner - Cantona backs United for success|
|Allegri grateful Juve control Serie A title destiny|