Equatorial Guinea reached the last 16 at the Africa Cup of Nations after beating Sierra Leone 1-0 – a result which eliminated the Leone Stars.
Midfielder Pablo Ganet curled in from the edge of the area to net the only goal seven minutes before the break.
Sierra Leone had needed a point to progress, but veteran striker Kei Kamara saw an 84th-minute penalty saved by Jesus Owono.
The Equatoguineans finish second in Group E behind Ivory Coast.
Juan Micha’s side will now face the winner of Group F – any one of The Gambia, Mali and Tunisia – on Wednesday, 26 January.
The late missed penalty was harsh on Kamara, the 37-year-old who had scored the winner against Sierra Leone last June which had Sierra Leone’s qualification for the tournament.
The former Norwich City and Middlesbrough man had been handed the responsibility after Ganet had brought down Issa Kallon, but Owonu launched himself to his left to claw Kamara’s attempt past the post.
The Leone Stars, making their first appearance at the Nations Cup since 1996, had drawn their first two games against defending champions Algeria and two-time winners Ivory Coast to give themselves a chance of going through.
Yet they struggled to create meaningful chances in Limbe, although Steven Caulker headed across goal and wide just after the hour mark as they sought an equaliser.
Sierra Leone had Kwame Quee sent off late on for a second bookable offence and their result, coupled with Algeria’s 3-1 defeat by Ivory Coast, means Tunisia and debutants Comoros are guaranteed their own spots in the knock-out stages.