Uganda Cranes has been drawn in Group E along with Ghana, Egypt and Congo.
The draws were held on Friday evening in Cairo, Egypt.
The first group matches will be played in October 2016.
The winners of the five groups qualify for the 2018 FIFA World Cup in Russia.
Group A: Tunisia, Libya, DR Congo, Guinea
Group B: Zambia, Cameroon, Algeria and Nigeria.
Group C: Gabon, Mali, Ivory Coast, Morocco
Group D: Senegal , South Africa, Burkina Faso, Cape Verde
Group E: Ghana, Egypt, Congo, Uganda