Hosts Gabon will stage the opening match in Libreville on January 14 against Group A opponents Guinea-Bissau who make their first appearance in the 16-nation tournament.
Cameroon and Burkina Faso are also in the group.
The other group favourites, Algeria and Ghana start against Zimbabwe and Uganda respectively.
Algeria have the toughest first round task in Group B where they must also take on Tunisia and Senegal for one of the two qualifying places for the quarterfinals.
Ghana are the team to beat in Group D. Apart from Uganda, they will take on Egypt, making their return to the contest after missing three finals, and Mali.
The final is in Libreville on February 5.
DRAW FOR AFCON 2017
Group A: Gabon (seeded), Burkina Faso, Cameroon, Guinea-Bissau
Group B: Algeria (seeded), Tunisia, Senegal, Zimbabwe
Group C: Ivory Coast (seeded), Democratic Republic of Congo, Morocco, Togo
Group D: Ghana (seeded), Mali, Egypt, Uganda