Younes Belhanda's goal 11 minutes from time earned Morocco a 1-0 win over Niger in an African Cup of Nations tie involving two Group C teams already eliminated.
It was the last game of the tournament for both nations who finished behind group winners Gabon, the co-hosts, and Tunisia.
Morocco were one of the pre-tournament favourites but have suffered a major crisis of confidence less than six months before launching their World Cup qualifying campaign.
They gave another poor performance against Niger that will not bode well for the future of coach Eric Gerets.
Former Belgium World Cup player Gerets said beforehand that he viewed the match with Niger as a chance to start again after their opening defeats by Tunisia and Gabon.
Morocco dominated possession, their skilful midfielders cleverly interchanging passes but also overelaborating and showing indecision.
The only goal came when Marouane Chamakh, looking suspiciously offside, put Belhanda in for a sliding finish.
Niger created the best opportunities in front of a small crowd at the 45,000-capacity Libreville stadium.
The dangerous Moussa Maazou shaved the crossbar from close range just before halftime and after the break Abdoul Karim Lancina forced a good save from Morocco keeper Mohamed Amsif with a swerving long range free kick.


NDC played no key role in Sedina Tamakloe's extradition, NPP did — Ahiagbah
Seven feared dead in Saturday dawn collision at Zebila
6th Ministers of State Awards saga: 'It is unfair to suggest all awardees bought...
I didn't pay money for recognition at 6th Ghana Ministers of State Excellence Aw...
2026 World Cup: Rescind decision denying Thomas Partey visa in the interest of f...
June 13: Cedi appreciates, sells at GHS12.30 on forex market, GHS11.06 on BoG in...
Plea bargains favour the rich and powerful in practice — Arthur Kennedy
Exim Bank fraud case: I agree that other persons must answer some questions — Ak...
Exim Bank fraud case: Wontumi must admit guilt before any plea deal — Akwatia MP
Exim Bank fraud case: 'Wontumi's plea bargain is not an admission of guilt' — Na...