Match ends, Raja Casablanca 3, Atlético Mineiro 1.
Raja Casablanca scored twice in the last 10 minutes to stun Brazil's Atletico Mineiro in their Club World Cup semi-final and earn a place in the final against Bayern Munich.
Moroccan champions Raja led when Mouhssine Iajour hit a low shot past Victor.
Former Barcelona star Ronaldinho curled a free-kick in to level for Mineiro.
But Mohaine Moutaouali's penalty put Raja ahead and Vivien Mabide wrapped up the win with a breakaway goal.
At the end of the match Raja players surrounded the 33-year-old Ronaldinho, who has previously played for Paris St-Germain and AC Milan as well as Barcelona, to ask for his shirt and took off his boots.
The former World Player of the Year has made over 90 appearances for Brazil and is hoping to be included in the squad for next year's World Cup.
Raja will now face European champions Bayern in Saturday's final in Marrakesh.
It will be only the second time since the tournament has been played in its current format in 2005 that the final has not been between a South American and European team.
In Wednesday's earlier game, Egyptian champions Al Ahly were thrashed 5-1 by Mexico's Monterrey, who sealed fifth place with the victory.
Al Ahly were out for revenge against the Concacaf champions, having lost to them in last year's third-place play-off, but were swept aside in Marrakesh.
Cesar Delgado scored twice for Monterrey to become the competition's all-time leading scorer with five goals, surpassing Argentine Lionel Messi, Brazilian Denilson and Egyptian Mohamed Aboutrika, who missed the match because of a hamstring injury.
The legendary Ahly midfielder suffered the injury in his side's quarter-final defeat by Guangzhou Evergrande, a match which could be his last if he does not reconsider his decision to retire from football.
Monterrey's other scorers were Neri Cardozo, Leobardo Lopez and Humberto Suazo, while Ahly's lone strike came from Emad Meteab.
- 3El Hachimi
- 8ChitibiSubstituted forMabidéat 56'minutes
- 20IajourSubstituted forCoulibalyat 88'minutes
- 18HafidiSubstituted forKandaat 76'minutes
- 1El Had
- 2Rocha AquinoSubstituted forGedeao de Paivaat 63'minutes
- 14Candido SilvaSubstituted forFelisbinoat 84'minutes
- 28Anunciado de OliveiraSubstituted forGonçalves da Silvaat 58'minutes
- 3Silva e Silva
- 4Alves de AraújoBooked at 83mins
- 5Santos Oliveira
- 7de Assis Silva
- 10de Assís Moreira
- 11Pereira da Silva
- 6Eduardo Machado
- 8Gonçalves da Silva
- 15da Silva
- 17Milhonmem Gusmao
- 23Leandro da Silva Oliveira
- 25Santos Salles
- 26Cesar Neves
- 27Gedeao de Paiva
- 29Macedo Rocha Machado
- 87Aparecido Adriano dos Santos
- 88Adolfo Nascimento
- Carlos Velasco Carballo
- Shots on Target
Second Half ends, Raja Casablanca 3, Atlético Mineiro 1.
Goal! Raja Casablanca 3, Atlético Mineiro 1. Vianney Mabidé (Raja Casablanca) left footed shot from the centre of the box to the centre of the goal.
Mohsine Moutouali (Raja Casablanca) hits the bar with a right footed shot from the right side of the box. Assisted by Vianney Mabidé.
Attempt missed. Mohsine Moutouali (Raja Casablanca) right footed shot from the right side of the box is too high. Assisted by Issam Erraki.
Attempt missed. Alecsandro (Atlético Mineiro) header from the left side of the six yard box misses to the left. Assisted by Ronaldinho with a cross following a corner.
Corner, Atlético Mineiro. Conceded by Issam Erraki.
Attempt missed. Jô (Atlético Mineiro) header from the centre of the box misses to the right. Assisted by Fernandinho.
Substitution, Raja Casablanca. Idrissa Coulibaly replaces Mouhcine Iajour.
Offside, Atlético Mineiro. Réver tries a through ball, but Jô is caught offside.
Delay over. They are ready to continue.
Delay in match Zakaria El Hachimi (Raja Casablanca) because of an injury.
Substitution, Atlético Mineiro. Alecsandro replaces Lucas Candido.
Goal! Raja Casablanca 2, Atlético Mineiro 1. Mohsine Moutouali (Raja Casablanca) converts the penalty with a right footed shot to the bottom right corner.
Réver (Atlético Mineiro) is shown the yellow card for a bad foul.
Penalty conceded by Réver (Atlético Mineiro) after a foul in the penalty area.
Penalty Raja Casablanca. Mouhcine Iajour draws a foul in the penalty area.
Foul by Luan (Atlético Mineiro).
Mohsine Moutouali (Raja Casablanca) wins a free kick in the defensive half.
Attempt missed. Mouhcine Iajour (Raja Casablanca) left footed shot from outside the box is close, but misses to the left. Assisted by Zakaria El Hachimi.