The Atlas Lions, already assured of qualification, confirmed their top spot having their fifth clean sheet of the campaign.
Morocco's new international Munir El Haddadi scored the game's lone goal just before the break.
Morocco topped Group E on 11 points ahead of Mauritania, who secured the second slot.