Nigeria will face Egypt in Group D in the group stage of the 2021 Africa Cup of Nations.
The Super Eagles, who finished top of their qualifying group, will also face Sudan and Guinea Bissau.
The draw ceremony took place Tuesday evening at Yaounde Conference Centre, Cameroon.
Comoros, who are making their debut at the tournament, will play on Senegal, Ghana and Gabon in Group C.
Algeria must negotiate their way past Sierra Leone, Equatorial Guinea and Cote d’Ivoire in Group E if they hope to make it to the second round of the championship.
Elsewhere, Tunisia have been zoned alongside Mali, Mauritania, and Gambia in Group F.
Nigeria begin their tournament against the Pharaohs at the Roumde Adjia Stadium, Garoua on January 11.
The 33rd edition of the continental showpiece was due to begin on January 9, 2021. However, it was pushed back to January 2022 due to the impact of COVID-19.
Check out the groups in full below:
Group A: Cameroon, Burkina Faso, Ethiopia, Cape Verde
Group B: Senegal, Zimbabwe, Guinea, Malawi
Group C: Morocco, Ghana, Comoros, Gabon
Group D: Nigeria, Egypt, Sudan, Guinea-Bissau
Group E: Algeria, Sierra Leone, Equatorial Guinea, Cote d’Ivoire
Group F: Tunisia, Mali, Mauritania, Gambia