Defending champions Zambia have been drawn against Burkina Faso, Ethiopia and Nigeria for the 2013 Africa Cup of Nations.
The draw for next year's competition was made on Wednesday evening in South Africa.
South Africa will be joined by Cape Verde, Morocco and Angola in Group A, while Ghana have been pitted with DR Congo, Niger and Mali in Group B.
Meanwhile, Ivory Coast will face Algeria, Tunisia and Togo in the tournament's 'Group of Death'.
Group A: South Africa, Cape Verde, Morocco, Angola
Group B: Ghana, DR Congo, Niger, Mali
Group C: Zambia, Burnkina Faso, Ethiopia, Nigeria
Group D: Ivory Coast, Algeria, Tunisia, Togo