Durban - Hosts South Africa will face Cape Verde in the opening match of the 2013 Africa Cup of Nations in Johannesburg.
Bafana Bafana, one of four seeded teams, were included in Group A with 2010 hosts Angola, 1976 champions Morocco, and Cape Verde, a small island nation off the west coast of Africa, in the final draw made here on Wednesday night.
West African giants Ghana were drawn alongside Mali, Niger and Democratic Republic of Congo in Group B.
Title holders Zambia will face Nigeria, Burkina Faso and Ethiopia in Group C.
Ivory Coast, seeded in Group D, are up against Tunisia, Algeria and Togo.
The three-week tournament, starting on January 19, will be played at five stadiums - FNB Stadium in Johannesburg, Moses Mabhida Stadium in Durban, Nelson Mandela Bay Stadium in Port Elizabeth, Mbombela Stadium in Nelspruit and Royal Bafokeng Stadium in Rustenburg.
Libya originally won the hosting rights, but the tournament was moved to South Africa due to political unrest in the north African country.
South Africa hosted the tournament once before, in 1996, when Bafana Bafana defeated Tunisia 2-0 in the final to lift their only African Cup of Nations title.
The draw for the 2013 Africa Cup of Nations:
Group A: South Africa, Angola, Morocco, Cape Verde
Group B: Ghana, Mali, Niger, DR Congo
Group C: Zambia, Nigeria, Burkina Faso, Ethiopia
Group D: Ivory Coast, Tunisia, Algeria, Togo
Fixtures for 2013 Africa Cup of Nations in South Africa:
Group A (Durban unless stated)
South Africa v Cape Verde, Angola v Morocco
South Africa v Angola, Morocco v Cape Verde
South Africa v Morocco
Cape Verde v Angola 1700
Group B (Port Elizabeth unless stated)
Ghana v DR Congo, Mali v Niger
Ghana v Mali, Niger v DR Congo
Ghana v Niger
DR Congo v Mali
Group C (Nelspruit unless stated)
Zambia v Ethiopia, Nigeria v Burkina Faso
Zambia v Nigeria, Burkina Faso v Ethiopia
Zambia v Burkina Faso
Ethiopia v Nigeria 1700
Group D (Rustenburg unless stated)
Ivory Coast v Togo, Tunisia v Algeria
Ivory Coast v Tunisia, Algeria v Togo
Ivory Coast v Algeria
Togo v Tunisia
(1) Gp B winners v Gp A runners-up
(2) Gp A winners v Gp B runners-up
(3) Gp D winners v Gp C runners-up
(4) Gp C winners v Gp D runners-up
Winners quarter-final 2 v winners quarter-final 3
Winners quarter-final 4 v winners quarter-final 1
Johannesburg: FNB Stadium (94 000 capacity)
Durban: Moses Mabhida Stadium (54 000)
Nelspruit: Mbombela Stadium (41 000)
Port Elizabeth: Nelson Mandela Bay Stadium (48 500)
Rustenburg: Royal Bafokeng Sports Palace (42 000)