AFCON 2017: Nigeria fail to qualify for the second successive year after defeat by Egypt.
With just one game remaining and only the group winners to qualify, Nigeria cannot make up their five-point deficit to table-toppers Egypt.
Ramadan Sobhy's 65th-minute winner puts Egypt on the verge of qualification.
Egypt face Tanzania in June and will book their place in Gabon with any result better than a 3-0 defeat.
Hosts Egypt created the better chances in the first half but Nigeria also had their moments during a goalless first half at a packed Borg El-Arab Stadium in Alexandria.
Nigeria played with a lot of confidence and dictated the tempo of the game for a good period of the first 45 minutes.
Defending Champions Nigeria fail to qualify