Despite a shock 2-1 defeat to Zimbabwe who have already been eliminated, Guinea have qualified for the round of 16 from Group B at the AFCON 2021.
History was made in the tie as Rwandan referee Salima Mukansanga becomes the first woman to officiate an AFCON match.
On an afternoon of surprises, Guinea fell 2-1 to already-eliminated Zimbabwe in Yaounde and scraped into the round of 16 as runners-up thanks to a better head-to-head record than Malawi.
Brave Malawi finished third and must wait until Thursday to see if they will be among the best four third-placed teams and qualify for the second round.
Zimbabwe triumphed at the flagship African tournament for the first time since 2006 when they held on for victory over previously impressive Guinea.
A Knowledge Musona header and a Kudakwashe Mahachi shot gave the Zimbabweans a two-goal half-time advantage that was reduced when Liverpool midfielder Naby Keita netted on 49 minutes.
The final Group C matches are scheduled for later Tuesday with Morocco facing Gabon in Yaounde and the Comoros meeting Ghana in Garoua.