Raja Casablanca survived a scare to defeat Auckland City 2-1 and qualify for the quarter-finals of FIFA's Club World Cup on Wednesday.
The Moroccan outfit - playing in their home country - were heavy favourites and dominated the first half at Stade d'Agadir.
They took a deserved lead in the 39th minute when Mouhssine Iajour atoned for an earlier miss with a stylish left-foot finish.
Fijian Roy Krishna shocked Casablanca by pouncing on a horrendous defensive error to level just after the hour mark, but Abdelilah Hafidi spared the blushes of the hosts with a close-range finish in the 92nd minute.
Casablanca will now play North American champions Monterrey of Mexico in the last eight.
Casablanca - the only side involved in the tournament who are not champions of their continent - entered the match on the back of a four-match winless run domestically.
They were buoyed by a partisan home crowd against amateur outfit Auckland City – winners of the OFC Champions League – and started brightly, with Adil Karrouchy volleying an excellent cross from captain Mohsine Moutaouali over in the seventh minute.
Iajour was sent through on goal in the 22nd minute but had his effort saved by the outstretched leg of Auckland goalkeeper Tamati Williams.
He made amends six minutes before half-time though, as a Karrouchy ball played him in.
Iajour beat Auckland skipper Ivan Vicelich before shooting past Williams from a tight angle.
Casablanca nearly had a second three minutes into the second half, with another excellent Karrouchy ball headed behind by John Irving, but dropped back after that and allowed Auckland into the match.
Christopher Bale shot wide before a smart Issam Erraki intervention kept out Krishna from a clever free-kick.
Auckland did level proceedings in the 63rd minute, as a dreadful defensive mix-up – which saw three players fail to clear and Mohamed Oulhaj and Karrouchy tackle each other – allowed Krishna in.
The forward kept his composure to slot past the onrushing Khalid Askri from outside the penalty area and his goal spurred Auckland on.
They started to have more of the ball and Krishna proved a continued threat, but a late Casablanca attack ended Auckland's hopes of reaching the quarter-finals.
The influential Karrouchy supplied the cross and, although Oulhaj's header was well saved by Williams, Hafidi was on hand to send the home crowd into raptures.
|3||Z. El Hachimi|
|Coach: F. Benzarti|
for C. Chtibi 74'
for M. Iajour 85'
for A. Hafidi 90+4'
|Thiago would´ve stayed at Barca under Pep|
|Copa Libertadores Review: Tigres advance to quarters|
|Houston Dynamo 0 San Jose Earthquakes 1: Kinnear claims triumphant Texas return|
|Martinez: Everton got carried away during unbeaten run|
|Neymar has flourished with captaincy - Dunga|
|A-League Preview: Victory, City to meet in biggest Melbourne derby|
|Ramos: Real Madrid in box seat|
|´Bale gave Real nothing´ - Keane|
|Hill backs Ramsey for QPR job|
|Ancelotti confident of Real revival|
|Allegri rues late Llorente miss in Juve triumph|
|Juve sent a warning - Pirlo|
|Inverness Caledonian Thistle 2 Dundee United 1: Ofere and Williams keep European dream alive|
|Juventus 2 Real Madrid 1: Spot-on Tevez earns first-leg lead|
|Sturridge hip surgery a success|
|Coloccini calls for unity as Newcastle target survival|
|Doumbia cleared to make Milan trip|
|Harper calls for Hull unity|
|Guardiola not distracted by Barca homecoming|
|No defence can stop Barca star Messi - Guardiola|
|Neuer ready to face Barca strike trio|
|Napoli v Dnipro: Benitez seeks to make experience count|
|Jones ready for United return|
|Injury rules Oscar out of Brazil´s Copa squad|
|Mazinho proud ahead of Barca v Bayern contest|
|Sevilla v Fiorentina: Kolodziejczak confident ahead of semi-final test|
|Skipper Soriano set for Villarreal return|
|Martinez wary of Pienaar risk|
|AFC Champions League Review: Holders Western Sydney out due to last-gasp Seoul winner|
|Barca focused ahead of Pep return - Luis Enrique|
|Messi has ´no problem´ with Luis Enrique|
|Relegated Tranmere appoint Brabin|
|Ujah agrees Werder transfer|
|Magath backs Guardiola to remain at Bayern|
|Mathieu out of Bayern clash|
|Burnley appeal Duff dismissal|
|Setif drawn in Algeria-heavy Champions League group|
|Terry calls for new Drogba deal|
|Saul agrees bumper Atletico deal|
|Arsenal need to finish season strongly - Wenger|
|New Bilbao deal for Gurpegi|
|Pepe puts Morata friendship aside for Champions League match-up|
|Terry: Too long between titles|
|Hazard can be as good as Messi, Ronaldo - Fabregas|
|Carlisle ´deeply ashamed´ about suicide attempt|
|Tevez planning to win Champions League with Juve|
|Blatter ´knows absolutely nothing´ - Maradona|
|Allegri: Ancelotti a smart man|
|Sunderland academy coach to manage Oldham|
|Primeira Liga Review: Braga secure Europa League berth|
|Bruce backing Hull to respond against Burnley|
|Almeria 2 Celta Vigo 2: Bifouma, Zongo inspire hosts´ comeback|
|Arsenal can mount title bid - Wenger|
|Turkish Super Lig Review: Besiktas and Galatasaray remain locked at the top|
|Cagliari 4 Parma 0: Festa revival back in gear|
|Hull City 1 Arsenal 3: Sanchez at the double as visitors close on second|
|Blackpool - Huddersfield game will not be finished|
|Allegri vindicated by Juventus success|
|Russian Premier League Review: Krasnodar close the gap as Zenit slip up|
|Al Ahly dismiss Garrido|
|MLS Preview: Kinnear returns to Dynamo with Earthquakes|
|Ancelotti all out for victory against Juventus|
|Ramires recovering well after sickness|
|Prince Ali would back rival FIFA candidate to oust Blatter|
|Barcelona v Bayern Munich: Guardiola makes Camp Nou return|
|Kruse a target for Wolfsburg - Allofs|
|Fletcher backing Bournemouth to ´surprise a few´|
|Bremen agree deal with Fritz|
|Carver gets Newcastle backing|
|Blaszczykowski suffers groin tear|
|Boateng warns of Barca ´storm´|
|Brouwers agrees Gladbach extension|
|Benzema to miss Turin trip|
|England great Jimmy Greaves suffers stroke|
|Cabaye concerned by bit-part role at PSG|
|Parry: Anfield expansion a major boost|
|Ki targets Arsenal win and seventh spot|
|Pirlo eyes potential Champions League swansong|
|Mourinho rounds on critics after clinching title|
|Henderson: Liverpool can push on without Gerrard|
|Lack of goals a concern for Van Gaal|
|Hard to keep Benteke - Bacuna|
|MLS Review: Sporting KC end Chicago streak, Martins brace furthers NYC pain|
|Copa Libertadores Preview: River eye revenge in Superclasico|
|Garcia lauds ´impressive´ Roma|
|Pavon goal scores him a BMW for a month|
|Boca beat River in Superclasico|
|Inzaghi to blood youth after third straight Milan defeat|
|Blanc urges PSG to ´remain vigilant´|