Hosts Cameroon face 2013 finalists Burkina Faso as well as Ethiopia and Cape Verde.
A host of African football legends such as Samuel Eto'o and Didier Drogba were on hand to present the draw for the tournament, which will take place Jan. 9 to Feb. 6, 2022.
Algeria won the last edition in Egypt in 2019, but will have to overcome Sierra Leone, Equatorial Guinea as well as Ivory Coast if they are to retain their title.
There are 24 sides in the draw in six groups where the top two sides qualify for the round of 16 alongside the four best third-place teams.
Cameroon were stripped of hosting the 2019 tournament and agreed to switch to 2021.
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, Ivory Coast
GROUP F: Tunisia, Mali, Mauritania, Gambia