Cote d'Ivoire has topped its pool at the Africa Cup of Nations, while Sudan edged out Angola for second place in the same group.
Emmanuel Eboue and Wilfried Bony scored for the side known as The Elephants, which topped the final table with three wins while Angola lost out to Sudan on goal difference in the battle for second place.
Sudan consigned Burkina Faso to a 2-1 defeat in Malabo to qualify for the quarter-finals.
Co-title favourite Cote d'Ivoire collected a maximum nine points without ever going into overdrive, Sudan and Angola secured four each and Burkina Faso came last after three consecutive losses.
The Ivorians remain in the island city to tackle co-host Equatorial Guinea while Sudan faces Zambia in Bata in what will be the first quarter-final.
Coach Francois Zahoui had hinted that he would rest some of his first choices - but leaving nine on the bench came as a surprise with the only regulars in the starting line-up being centre-backs Kolo Toure and Souleymane Bamba.
Kolo Toure, older brother of 2011 African Footballer of the Year Yaya Toure, captained the team in the absence of Didier Drogba and Salomon Kalou was grateful for the rest after limping off against Burkina Faso last start.
Angola made two changes from the team held by Sudan with goalkeeper Wilson replacing suspended Carlos, whose two yellow cards came for time wasting, and Dede coming in for out-of-form striker Flavio.
The first half did little to excite another small crowd in the 15,000-seat Nuevo Estadio de Malabo apart from a goal on 33 minutes by former Arsenal defender Eboue.
After carelessly conceding possession in midfield, Angola was caught napping as a surging run from Bony took him into the penalty area and when Miguel failed to clear, Eboue tapped the ball in at the far post.
It was the first time in three outings that the Black Antelopes had fallen behind and with Sudan taking the lead in the same minute against Burkina Faso, the pressure was on the team from the south west of the continent.
The Angolans fell further behind on 64 minutes when a long pass into opposition territory by substitute Abdul Kader Keita led to a mix-up between centre-back Massunguna and goalkeeper Wilson, and a gift goal for Bony.
Massunguna panicked under pressure and headed the ball back over his advancing goalkeeper, leaving Bony to run in unopposed and tap the ball over the line.
Angola introduced Germany-born Nando Rafael as time ticked away and finally came alive with a header from former Manchester United striker Manucho forcing Daniel Yeboah into a good reflex save.