Mohamed Salah was on target as Africa Cup of Nations hosts Egypt ensured they emerged from Group A with a perfect record despite a stern examination by Uganda.
Liverpool striker Salah's free-kick and a second goal from Aston Villa midfielder Ahmed Elmohamady before the break secured a 2-0 win.
But the scoreline flattered them on a night when Sebastien Desabre's side, who finished second in the group with four points and take their place in the last-16, more than gave as good as they got in Cairo.
Egypt keeper Mohamed El-Shenawy had made a number of good saves before Salah curled a left-foot free-kick over the wall and past keeper Denis Onyango in the 36th minute.
Skipper Elmohamady smashed home a second in first-half stoppage time to clinch a third successive victory for Egypt, all without conceding a goal.
Salah almost made it 3-0 early in the second half, only to be denied Onyango, who is a doubt for the knockout phase after being stretchered off with 18 minutes remaining.
ga('create', 'UA-72310761-1', 'auto', {'name': 'pacontentapi'});
ga('pacontentapi.set', 'referrer', location.origin);
ga('pacontentapi.set', 'dimension1', 'By PA sport staff');
ga('pacontentapi.set', 'dimension2', 'a6ae9c8a-fac4-4dad-96f2-192ba14aa598');
ga('pacontentapi.set', 'dimension3', 'paservice:sport,paservice:sport:football,paservice:sport:match-reports,paservice:sport:world');
ga('pacontentapi.set', 'dimension6', 'story');
ga('pacontentapi.set', 'dimension7', 'composite');
ga('pacontentapi.set', 'dimension8', null);
ga('pacontentapi.set', 'dimension9', 'sport:football');
ga('pacontentapi.send', 'pageview', { 'location': location.href, 'page': (location.pathname + location.search + location.hash), 'title': 'Salah and Elmohamady on target as Egypt finish with 100% record'});