Seven-time champions Egypt clinched a place in the Africa Cup of Nations last 16 on Wednesday by defeating neighbours Sudan 1-0, a result which sent Cape Verde and Malawi through as well.
Nigeria finished Group D with a third successive win as they beat Guinea-Bissau 2-0, leaving Egypt to face the winners of Group E in the next round, and a potential clash with Ivory Coast in Douala.
Mohamed Abdelmonem headed home the winner at a corner 10 minutes before half-time in Yaounde to send the Pharaohs through and eliminate Sudan.