Burkina Faso pulled off a shock 2-1 win over Ghana on Sunday to qualify for the 2018 African Nations Championship (CHAN) in Kenya, the tournament for home-based footballers.
Elsewhere on Sunday, Namibia overturned a first-leg deficit against Comoros to progress.
On a weekend of shocks, the holders Democratic Republic of Congo were eliminated on the away goals-ruling by neighbours Congo Brazzaville, as Mali, Algeria, Egypt and South Africa also suffered exits.
|African Nations Championship qualifiers – first leg scores in brackets|
|Aggregate winners qualify for finals in Kenya from 11 January to 2 February|
|Friday:||Ivory Coast 1-0 Niger(Ivory Coast win on away goals after tie ends 2-2)|
|Libya 1-1 Algeria(Libya win 3-2 on aggregate)||Mali 0-1 Mauritania (Mauritania win 3-2 on aggregate)|
|Morocco 3-1 Egypt (Morocco win 4-2 on aggregate)||Sudan 1-0 Ethiopia (Sudan win 2-1 on aggregate)|
|Saturday:||Nigeria 2-0 Benin (Nigeria win 2-1 on aggregate)|
|Zambia 2-0 South Africa (Zambia win 4-2 on aggregate)||Sunday:|
|Rwanda 2-0 Uganda (Uganda win 3-2 on aggregate)||Namibia 2-0 Comoros(Namibia win 3-2 on aggregate)|
|DR Congo (holders) 1-1 Congo (Congowin on away goals)||Ghana 1-2 Burkina Faso(Burkina Faso win 4-3 on aggregate)|
|Cameroon 2-0 Sao Tome e Principe (Cameroon win 4-0 on aggregate)||Tuesday:|
|Angola 1-0 Madagascar (0-0) (Angolawin 1-0 on aggregate)||Guinea v Senegal (1-3)|
Ghana, who drew the first leg 2-2, failed to make the most of home advantage in Kumasi, suffering defeat to Burkina Faso in front of their own fans.
The hosts were rocked by Burkinabe goals from Mohammed Sylla and Herman Nikiema inside 30 minutes at the Baba Yaro Stadium.
Felix Addo pulled one goal back for Ghana just before the hour, but could not find the second goal they desperately needed to force a penalty shootout.
Burkina Faso qualified 4-3 on aggregate and will join 15 other countries at the biennial tournament, which Kenya will host from January 12 to February 4.
Also on Sunday, Namibia secured a place for the first time after a second-half brace from Muna Katupose earned a 2-0 victory over Comoros in Windhoek.
The substitute struck after 54 and 80 minutes as the Namibians overturned a 2-1 first leg loss.
2018 hosts Kenya and Equatorial Guinea, who qualified after Gabon withdrew, will also be making maiden Nations Championship finals appearances.