Anissa Lahmari's winner powered Women's World Cup debutants Morocco past Colombia 1-0 last night and into the last 16 at the expense of two-time champions Germany.
Morocco's upset in Perth lifted them to six points and they finished runners-up in Group H to Colombia on goal difference. Germany were eliminated after being held to a 1-1 draw with South Korea in Brisbane.
Colombia will play Jamaica in the round of 16, while Morocco face France.
It was a fairytale result for Morocco, who have rebounded from a 6-0 drubbing on their debut against Germany with wins over South Korea and Colombia.
In front of 17,342 fans, the sole goal arrived moments before half-time when Ibtissam Jraidi was impeded in the box by a clumsy Daniela Arias.
Captain Ghizlane Chebbak's penalty kick was spectacularly saved by goalkeeper Catalina Perez, but Sakina Ouzraoui pounced on the deflection and her nifty pass found Lahmari, who scored from close range.
Colombia striker Linda Caicedo was cleared to start after health checks. She had suffered breathing difficulties against the Germans just days after collapsing in training with chest pain.
Morocco played aggressively, with Chebbak and Fatima Tagnaout particularly influential.
Morocco forward Fatima Tagnaout celebrates her side's progress into the knockout stage following a 1-0 win over Colombia in Perth. AFP