The draw for the 2017 African Cup of Nations is as below:
Group A: Tunisia, Togo, Liberia, Djibouti
Group B: Democratic Republic of Congo, Angola, Central African Republic, Madagascar
Group C: Mali, Equatorial Guinea, Benin, South Sudan
Group D: Burkina Faso, Uganda, Botswana, Comoros
Group E: Zambia, Congo, Kenya, Guinea Bissau
Group F: Cape Verde, Morocco, Libya, Sao Tome
Group G: Nigeria, Egypt, Tanzania, Chad
Group H: Ghana, Mozambique, Rwanda, Mauritius
Group I: Ivory Coast, Sudan, Sierra Leone, Gabon
The winners of the 13 groups will book their place at the tournament along with the two best-placed runners-up excluding the group which contains hosts Gabon, whose matches will be considered friendlies and where only the winner will qualify.