The Confederation of African Football (Caf) has announced that Morocco will host the final round of Africa's Olympic qualifiers next month.
The North Africans have been awarded the tournament after Egypt withdrew earlier this week.
Caf says the tournament will be hosted in Marrakech and Tangiers, with additional venues in Rabat and/or Fes.
The top three automatically qualify for London 2012, while the fourth-placed team plays off against an Asian side.
Caf is labelling the competition as Africa's first Under-23 Championships.
The continent already has competitions at both Under-17 and Under-20 level, where the top three qualify for Fifa's finals at those age levels.
When the draw was made last month, Egypt were drawn in Group A against Gabon, South Africa and Ivory Coast.
Group B meanwhile comprises Nigeria, Morocco, Algeria and Senegal.
The Moroccans intensified their preparations when beating Ivory Coast 2-0 in a friendly in Tangiers on Tuesday.
The competition will run from 26 November to 10 December 2011.