Morocco came from a goal down to see off Zimbabwe 2-1 on Sunday and end a tumultuous 2014 on a positive note.
CAF opted to strip Morocco of Africa Cup of Nations hosting duties and remove them from the competition due to a row over the dates of the competition amid fears over the spread of the Ebola virus.
However, Badou Zaki's men picked up a 6-1 win over Benin in midweek to lift the gloom around the national side - a theme that continued on Sunday.
Zaki's charges extended their winning run to five matches as two goals in 14 second-half minutes turned the game on its head in Agadir.
Zimbabwe debutant Macauley Bonne had given the visitors the lead when he opened his international account 18 minutes in.
However, Stoke City winger Oussama Assaidi levelled for Morocco shortly after the hour when he sidefooted home from distance after some slick build-up play.
The turnaround was complete when Mouhcine Iajour tucked home the winner from the spot after the striker had been brought down in the box.comments