Libreville - Morocco denied Niger their first ever Africa Cup of Nations point with a 1-0 win in a meaningless closing Group C tie here on Tuesday.
With both teams already knocked out pride was the only prize on the table as qualified Gabon and Tunisia faced off in Franceville at the same time.
Morocco made a host of changes, including defenders Benatia (suspended) and Michael Basser (injured), from the team beaten by the co-hosts last Friday.
The Atlas Lions' attack was led by Arsenal striker Marouane Chamakh, and attacking midfielder and captain Houssine Kharja, the competition's joint top scorer with three goals.
Keeper Nadir Lamyaghri made way for Mohamed Amsif.
Niger's forward line was spearheaded by captain Moussa Maazou, whose dazzling runs caused the Tunisian defence all sorts of trouble last week.
With all of Gabon glued to events up in Franceville the L'Amitie stadium was nearly empty.
Morocco enjoyed near total possession in the early stages without causing Niger keeper Daouda Kassaly too much concern, Kharja and Youssef Hadji both shooting over the bar.
On 34 minutes Dynamo Kiev's Celtic recruit Badr El Kaddouri had Kassaly charging out of his goal with a close range shot, Niger defender Kofi Dankwae's outstretched foot clearing to safety.
But the best chance of the first half fell to the always dangerous Maazou who shortly after neatly controlled a high ball into the area, turned and smashed a shot only for the ball to ricochet off the bar with Amsif beaten.
Five minutes from the break Kharja's Cup came to a premature and painful end when the Fiorentina star left the pitch on a stretcher with a knee injury. Adil Hermach came on in the skipper's place.
Niger, 45 minutes away from an historic first Nations cup point, held a prayer session before the restart.
They were looking at grabbing all three points as Karim Lancina's pinpoint 25m freekick headed for goal on 46 minutes only for Amsif to safely extinguish the danger.
Approaching the hour mark and another well worked move by Morocco saw Younes Belhanda find Mbark Boussoufa in the box, with Kassaly falling at the Russian-based midfielder's feet to smother the ball.
The biggest cheer of the night came in the 65th minute....when Gabon took the lead up in Franceville.
Back in Libreville, good work from Kassaly was keeping Morocco at bay until the 89th minute when Chamakh fed Montpellier midfielder Belhanda whose sliding right-footed shot broke Niger's hearts and perhaps kept Morocco coach Eric Gerets in a job.