Mohamed Salah scored a stunning free-kick as Egypt maintained their perfect start to their Africa Cup of Nations campaign.
The hosts beat Uganda 2-0 to reach the last 16 as Group A winners.
Meanwhile, Madagascar stunned three-time winners Nigeria 2-0 in a highly entertaining encounter.
They'll now progress to the next stage of the tournament as winners of Group B.
Elsewhere, Congo kept their hopes of going through alive by thrashed Zimbabwe 4-0 while as did Guinea with a 2-0 victory over Burundi.

UEFA slams FIFA's 'incomprehensible' Balogun decision after Trump call
Briton Fery downs Dimitrov in battle of the Wimbledon wildcards
England's Henderson set to miss rest of World Cup with freak arm injury
Neymar says career with Brazil 'over' after loss to Norway
F1 could bring back refuelling and independent V8 supplier, says FIA head
