Achraf Hakimi converted an unstoppable free-kick against Malawi to send Morocco through to the next round of AFCON.
Morocco came from behind to book their place in the quarter-finals, beating Malawi 2-1 on Tuesday.
Gabadinho Mhango opened the scoring in stunning fashion, with Youssef En-Nesyri cancelling out his strike just before the break.
In the 70th minute, Hakimi put his team in the lead, bagging a sensational free-kick - his second of the tournament following his effort against Gabon.
Hakimi's goal even got the attention of his Paris Saint-Germain teammate Kylian Mbappe, who hailed him as the best right-back in world football.
He tweeted: "ACHRAF HAKIMI. BEST RB IN THE WORLD. GOOD NIGHT GUYS."
Topics: Achraf Hakimi, Football, Africa Cup Of Nations