Sofiane Boufal's 82nd minute strike helped Morocco down Ghana in their African Cup of Nations opener.
The former Southampton winger pounced on to a loose ball before smashing his effort into the far corner.
Four-time winners Ghana successfully frustrated their opponents in Yaounde.
But the Black Stars could not hold on for a point as Boufal proved the match-winner for Morocco.
Morocco face debutants Comoros on Friday before Ghana play Gabon.