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'
|Berardi will get Italy call when system changes - Ventura|
|Lucas Vazquez delighted by ´dream´ Madrid deal|
|Scottish FA chief backs cross-border competition|
|Dortmund need Reus - Aubameyang|
|Lamela eyeing new Spurs deal|
|Tighter Watford matches are a coincidence, says Mazzarri|
|Karanka: We saved Boro from League One|
|Police investigate homophobic leaflet at West Ham|
|Spain could recall Villa, reveals Lopetegui|
|Hughes backs Bony to break Stoke duck|
|Sarri will greet Higuain ´like a son who made him angry´|
|Robben receives Netherlands recall|
|Dyche considering Gray recall for Burnley|
|Zidane was behind one of my best seasons, says Ronaldo|
|Schweinsteiger absent from United squad photo|
|Emery emphasises Thiago Silva´s importance amid Juve links|
|Ferguson: Leicester will make deep Champions League run|
|Ranieri hails ´special´ Ballon d´Or nominations for Vardy and Mahrez|
|Emery: PSG cannot rely solely on Cavani goals|
|Mourinho can match Guardiola, insists Ferguson|
|Ferguson hails Klopp: Liverpool are strong title contenders now|
|Bayern optimistic over Lewandowski renewal|
|Zubizarreta appointment confirmed by Marseille|
|Clichy: Things will click into place for Manchester City|
|Chiellini: Juventus wanted to send a message|
|Gabigol´s time will come - De Boer|
|Ronaldo: Messi and I are not friends - but we respect each other|
|Earthquake halts play in Serie A game between Pescara and Atalanta|
|Mourinho charged over Taylor comments|
|Ronaldo: I need my haters|
|Badstuber hopeful injury woes behind him|
|Kroos did not want to be rested, insists Zidane|
|Rojo was phenomenal - Mourinho|
|Seven arrests made after West Ham - Chelsea fan clashes|
|Florenzi injury blow for Roma|
|MLS Review: Galaxy, Toronto into semis|
|Beister: Victory move surprised people|
|Bilic: Cup run will help in Premier League|
|Pjaca out for up to three weeks|
|Trophies still the focus for Guardiola|
|Mignolet wants ´fair´ Karius battle|
|Ancelotti impressed by motivated Bayern|
|West Ham ´unreservedly condemn´ crowd trouble|
|Allegri praises strike duo after win over Sampdoria|
|De Boer praises two-goal Icardi after vital win|
|Chelsea were ´unlucky´ with missed chances, insists Conte|
|Mourinho: I´ve never had fans like these|
|Nacho´s goal better than my Champions League final volley - Zidane|
|Borussia Dortmund 1 Union Berlin 1 (aet, 3-0 pens): Weidenfeller shootout heroics seal progress|
|Bilic: Crowd trouble distracts from great West Ham win|
|Kompany told me he couldn´t play anymore - Guardiola|
|Liverpool and Manchester United handed home quarter-finals|
|Inter 2 Torino 1: Icardi double alleviates pressure on De Boer|
|Manchester United 1 Manchester City 0: Mata extends Guardiola´s winless run|
|West Ham 2 Chelsea 1: Crowd trouble tarnishes Hammers´ route to quarter-finals|
|Cultural Leonesa 1 Real Madrid 7: Morata and Asensio star in BBC´s absence|
|Bayern Munich 3 Augsburg 1: Green´s first goal sends holders through|
|Juventus 4 Sampdoria 1: Rapid start sets champions on their way|
|Crafty Suarez is world´s best striker - Godin|
|Mancini: Balotelli has wasted years but can bounce back|
|Rami rejected ´risky´ PSG move|
|Neymar would have cost PSG €430m, claims father|
|Sacchi warns Bayern players over Ancelotti temper|
|Valencia ´pleased´ with RFEF bottle ruling|
|Mourinho apologises to Utd fans for Chelsea thrashing|
|Barcelona lash out at ´totally reprehensible´ RFEF comments|
|Jacob leaves Marseille amid rumours of Zubizarreta appointment|
|Lavezzi added to Argentina squad as Dybala drops out|
|Del Bosque: Mourinho had a point on Conte|
|N´Zonzi in talks over Sevilla extension|
|Allardyce successor ´will not be a mercenary´ - Glenn|
|Aubameyang like a rocket, Lewandowski perfect - Riedle|
|RFEF fines Valencia, warns Barca over bottle incident|
|Wenger tells Iwobi to improve his finishing|
|Barcelona without Mathieu for three weeks|
|Kimmich draws inspiration from Xavi|
|Vazquez signs new Madrid deal|
|Higuain the best striker in the world - Nedved|
|Wolfsburg regret De Bruyne, Perisic sales|
|Parejo slams Neymar for ´inciting´ Valencia fans|
|Gundogan predicts ´very lively´ Manchester derby|
|Luis Enrique satisfied with Supercopa workout|
|Messi could join Newell´s after World Cup - Maxi Rodriguez|
|Ibrahimovic wants United to be the boss of City|
|Schmidt on the bus as Lotte book ticket for next round|
|Pogba still adapting to Premier League, says Mourinho|
|Southgate hails influence of demoted Rooney|
|Lille ready to heap more pressure on PSG as Corchia dreams big|
|I´m among top 20 LaLiga coaches, jokes Luis Enrique|
|Brattan earns Socceroos call-up|
|Pochettino pleased with Janssen|
|Klopp never questioned Sturridge quality|
|Barcelona downed by Espanyol in Supercopa|
|Heavy Milan defeat ´just a bump in the road´ - Montella|
|Pochettino wanted Liverpool debutant sent off|
|Klopp happy to entertain as Liverpool youngsters earn their spurs|
|Leverkusen dumped out by 10-man minnows|