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'
|Vertonghen: Football needs Mourinho|
|Title triumph went to Leicester´s heads, admits Ranieri|
|Conceicao named new Nantes coach|
|LaLiga lead means nothing - Zidane|
|Chapecoense add two stars to badge in wake of air disaster|
|Blatter accuses Infantino of lack of respect|
|Austin injury compounds Puel´s misery|
|Gestifute publishes further evidence of ´Ronaldo tax compliance´|
|Pioli eyes further Inter improvement|
|´I feel s***´ - Van Dijk blasts Southampton after Europa League collapse|
|Mourinho marvels at Mkhitaryan mentality after Zorya stunner|
|Southampton 1 Hapoel Be´er Sheva 1: Late Van Dijk leveller not enough as visitors progress|
|Inter 2 Sparta Prague 1: Eder double sends hosts out on a high|
|Vieira wanted Arsenal coaching opportunity|
|Vieira hopes MLS experience puts him in frame to replace Guardiola|
|Mkhitaryan: I waited a long time for this|
|Zorya 0 Manchester United 2: Mkhitaryan magic sends Mourinho´s men through|
|Ranieri urges Leicester players to fight for their futures|
|Cellino banned for 18 months over McCormack transfer|
|Koeman demands reaction from dropped Barkley|
|Tevez unsure on Boca future amid China speculation|
|Bradley vows to fight for his job at Swansea|
|Koeman speaks out on Depay, Schneiderlin links|
|Wenger unconvinced by World Cup expansion plans|
|Kovac brothers sign new Frankfurt deals|
|Selling Sturridge would be a mistake, says Rush|
|UEFA opens disciplinary proceedings against Besiktas, Dynamo Kiev|
|Filipe Luis suffers thigh tear|
|Kashima Antlers 2 Auckland City 1: Late Kanazaki header the difference|
|Suarez´s Barca renewal already done, says Bartomeu|
|Barcelona invite Chapecoense for Joan Gamper Trophy|
|Arsenal would have a chance against Real Madrid, insists Wenger|
|FIFA chief Infantino calls for zero tolerance on child abuse|
|Sanchez will not leave Arsenal for China - Wenger|
|Dybala delighted with Juventus return|
|Rashford desperate to learn from Ibrahimovic|
|Weigl not ready for Real Madrid - Tuchel|
|Why Zidane must drop Ronaldo at the Club World Cup|
|Barton: They built me up into a Neymar-Messi type|
|Shakhtar aware of Barca interest in Srna - Fonseca|
|Mets hitting coach believes Tebow can make it to MLB|
|Aubameyang reiterates Madrid dream after Bernabeu show|
|Zidane praises Benzema after 50th Champions League goal|
|Aubameyang deserves 99 per cent of credit - Reus|
|Neymar: There´s only one Ballon d´Or winner and it´s Messi, not Ronaldo|
|Magiera hails Legia victory as for ´all of Poland´|
|Tuchel thought Aubameyang had blown chance to equalise|
|Pochettino confident Spurs are back on track|
|Santo hails Porto´s mature performance|
|Lyon proved we can compete with Europe´s best - Genesio|
|Slutsky unsurprised by apparent Premier League interest in Dzagoev|
|Jardim frustrated as Monaco finally lose|
|Allegri dismisses importance of first-place finish|
|Zidane ´angry´ as Real Madrid let top spot slip|
|Sevilla aren´t satisfied with Champions League last 16 - Sampaoli|
|Ranieri slams Leicester´s lack of character|
|Confident Roberts ready to wing in for City|
|Real Madrid equal record 34-match unbeaten run|
|Kane relieved to end Wembley hoodoo|
|Legia Warsaw 1 Sporting CP 0: Guilherme seals Europa League spot|
|Porto 5 Leicester City 0: Silva at the double as Ranieri´s men crumble|
|Borussia Dortmund break record for goals in Champions League group stage|
|Real Madrid 2 Borussia Dortmund 2: Reus equaliser sees visitors grab top spot|
|Bayer Leverkusen 3 Monaco 0: Hosts retain unbeaten record with routine win|
|Club Brugge 0 FC Copenhagen 2: Routine win not enough as FCK must settle for Europa League|
|Lyon 0 Sevilla 0: Europa League holders secure passage|
|Juventus 2 Dinamo Zagreb 0: Bianconeri top group with easy win|
|Tottenham 3 CSKA Moscow 1: Spurs survive scare to seal Europa League berth|
|Benzema reaches 50 Champions League goals|
|Buffon´s 50-game Champions League run comes to an end|
|Santi Cazorla gives Achiles surgery two thumbs up|
|Video technology to assist referees at FIFA Club World Cup|
|Spalletti wants winning mentality to continue for Roma|
|M´Vila rejects Sunderland return|
|Robson-Kanu prioritised Premier League move, despite Atleti interest|
|Puel dismisses Fonte departure speculation|
|Mourinho rejects ´best coach in the world´ tag|
|Manchester United not giving up on Premier League, insists Mkhitaryan|
|Infantino favours 16 three-team groups at World Cup - report|
|Europa League an ´important competition´ for Mourinho|
|Brozovic extends Inter stay|
|Rooney still has England future - Hodgson|
|New wardrobe top of Jesus´ Manchester to-do list|
|Pioli not concerned by Simeone´s Inter comments|
|Poyet: It would be a pleasure to sign Tevez|
|Celtic charged by UEFA over crowd disturbances|
|Not extending Man United stay my only regret - Larsson|
|Aubameyang´s mum: He always spoke about Madrid, never Barcelona|
|AC Milan sale delayed until March|
|Police horse burger thrower fined|
|Nolito comfortable with Guardiola´s rotation policy|
|Ajax expect in-demand Bazoer to exit|
|Not even the Golden Boot would get me an England recall, says Defoe|
|MLS MVP Villa has no interest in Premier League move|
|Vidal: I never had a problem with Luis Enrique|
|Ancelotti not keen on Madrid Champions League reunion|
|Zabaleta: Guardiola needs Iheanacho more than ever|
|Ranieri not fearful of Foxes chop|
|Celtic fan arrested for throwing burger at police horse|
|Dad-to-be Lewandowski reveals baby news with goal celebration|
|Klopp´s Liverpool watched Barca at Camp Nou|
|Wenger braced for tough last-16 draw|
|Roberts buoyed by Guardiola acclaim|
|Gladbach´s Alvaro Dominguez retires at 27|
|Simeone satisfied with aggressive Atletico|
|Emery aims to bounce back after European disappointment|
|Madrid demand ´maximum respect´ for Ronaldo|
|No pressure on Iheanacho to fill Aguero´s boots - Guardiola|
|Cocu praises PSV effort despite European exit|
|Ancelotti hoping for confidence boost|
|Gunes takes blame for Besiktas thrashing|