The Super Eagles of Nigeria have been grouped in Group D with Egypt in the 2021 edition of the Africa Cup of Nations, which is scheduled to hold in Cameroon between January 9 and February 6, 2022.
The other teams in the group include Sudan and Guinea-Bissau, who have transformed from minnows to qualifying three times in a row.
Meanwhile, Algeria will face the Ivory Coast, the only team they failed to defeat in winning the last Africa Cup of Nations.
Algeria and the Ivory Coast were placed in Group E with Sierra Leone and Equatorial Guinea when the draw was made in Yaounde on Tuesday.
Algeria is third in the continent this month behind Senegal and Tunisia, but they are the form team as they boast an African record 27-match unbeaten run since November 2018.
Cameroon, were put in Group A with Burkina Faso, who they will face in the opening match in Yaounde, Ethiopia and Cape Verde.
Tunisia, who have qualified for every Cup of Nations since 1994, are in Group F with Mali, Mauritania and the Gambia, who along with the Comoros are debutants.
Speaking ahead of the draw, Confederation of African Football president Patrice Motsepe said he hoped for an exciting, competitive and successful tournament as Cameroon play hosts for a second time.
Cameroon were originally due to stage the African football showcase in 2019 but fell behind with preparations and Egypt stepped in as late replacements.
The 2021 tournament dates have changed twice, first because of fears that torrential seasonal rains could affect the tight schedule, and then because of the Coronavirus pandemic.