Guinea make it to next round despite defeat to Zimbabwe
Underdogs Zimbabwe stunned Guinea to leave Kaba Diawara's men facing an anxious wait, but they will still play in the round of 16.
Guinea faced an anxious wait but will still qualify for the Africa Cup of Nations round of 16 despite suffering a shock 2-1 defeat to Zimbabwe at Stade Ahmadou Ahidjo.
Kaba Diawara's side started their final Group B match with one foot seemingly in the knockout stage, but Zimbabwe pulled off an upset to end their 14-match winless run in Yaounde on Tuesday.
Guinea then had to wait for confirmation that Senegal and Malawi had drawn 0-0 in the other game before being sure of their place in the next stage.
Senegal finish top of group
As a result, Senegal finished top of the group, meaning they will play one of the best third-placed teams, while Malawi finish third behind Guinea by virtue of an earlier defeat to them.
Captain Knowledge Musona rose unmarked to open the scoring for Zimbabwe - with no chance of qualifying after losing their two other games - after 26 minutes, heading home Never Tigere's cross from six yards out.
Kudakwashe Mahachi doubled Zimbabwe's lead two minutes before half-time, with goalkeeper Aly Keita badly at fault as he failed to keep out the midfielder's shot from outside the penalty area.
Zimbabwe record first win since 2006
Guinea looked a totally different side after the break and Naby Keita halved the deficit four minutes into the second half, bursting forward and unleashing a rasping left-foot strike from outside the box that flew into the far corner of the net.
Zimbabwe came under increasing pressure but held on for their first AFCON win since 2006, while Syli Nationale will need to improve markedly to make an impact in the knockout stages.