Mohamed Salah scored a stunning 25-yard free-kick as hosts Egypt beat Uganda and topped Group A with a perfect record of three victories.
The Pharoahs had been second-best and had done well to withstand a sustained spell of pressure when Salah drew the foul and then nonchalantly curled a sumptuous free-kick past Denis Onyango with 36 minutes on the clock.
It was the Liverpool talisman’s second goal of the tournament and Aston Villa full-back Ahmed Elmohamady soon joined him on two with a well-taken strike from Ayman Ashraf’s cross just before the interval.
Uganda continued to ask questions after the restart, as Egypt dropped deeper and invited pressure, but Sebastien Desabre’s side couldn’t find the goal they would have richly deserved.
Emmanuel Okwi spurned the best opportunity, but safe in the knowledge they had a place in the knockout stages for the first time in 41 years, manager Desabre will lose little sleep over this defeat.
Egypt qualify for the latter stages of the competition with nine points without conceding a goal and yet they haven’t reached the heights expected of them