Wilfried Zaha's late goal put Ivory Coast into the quarter-finals of the African Cup of Nations after beating Mali 1-0 on Monday.
Zaha's winner on 76 minutes saved Ivory Coast, who had been the second-best team for most of the last-16 game in Suez.
The Crystal Palace winger ran onto a long pass launched from the back and tucked his shot away, punishing Mali for failing to take their chances.
Mali had twice as many shots on goal as the Ivorians and dominated the first half, but the 2015 champions progressed to set up a last-eight tie with Algeria thanks to Zaha's strike.
The quarter-final line-up will be completed later on Monday when Tunisia and Ghana fight for the final spot in Ismailia.
Tunisia complete last-eight line-up
Tunisia edged past Ghana 5-4 on penalties in their last-16 tie on Monday, after a 1-1 extra-time draw, to take the last place in the Africa Cup of Nations quarter-finals.
Ferjani Sassi netted the decisive kick in the shootout as Tunisia kept up their unconvincing progress in the tournament where they next meet rookies Madagascar in the last eight on Thursday.
Tunisia opened the scoring against the run of play when striker Taha Yassine Khenissi netted 17 minutes from time.
But an own goal in stoppage time let Ghana back in and forced the game into extra time as defender Rami Bedoui, who had just come on in a bid to shore up the defence, headed into his own net attempting to clear a lofted free kick from Jordan Ayew.