Ivory Coast beat Cameroon to earn a place in the Africa Cup of Nations quarter-finals as Group D winners.Max Gradel scored the goal that gave the Elephants the only victory in the six matches in the group, and saved them from having to draw lots.
He smashed in a drive from 20 yards to set up a last eight match with Group C runners-up Algeria on Sunday.
Edgar Salli missed two good chances to equalise, hesitating when clean through and also blazing over from in the box.
Those glaring misses left Cameroon bottom of the group - their worst finish at a Nations Cup finals - and it also means lots will need to be drawn on Thursday to decide whether Mali or Guinea, who played out the fifth 1-1 stalemate of Group D, take the other quarter-final place.
Ivory Coast will be relieved to have avoided that lottery, having gone out in 1988 by that method, as they did just enough to earn the win that guaranteed them passage to the knock-out stages for the sixth successive time.
But neither side was brimming with confidence and the first half-hour lacked fluency and decisiveness.
It was a moment of uncertainty from Cameroon defender Jerome Guihoata that cost his side dear when he lost the ball to Gradel 25 yards out and the forward sent a rasping drive into the left corner to open the scoring.
Cameroon had a chance to restore parity three minutes later, but Salli took too long to get his shot away when clean though and Sylvain Gbohouo rushed out to save with his legs.
Salli was guilty of a worse miss when he blazed high and wide from the edge of the box with the last kick of the half - and it proved to be his final touch as he was replaced by Vincent Aboubakar at the start of the second period.
It was a change that was destined not to work for Cameroon as Aboubakar could do no better than Salli, spurning his side's only clear second-half chance, scuffing a shot from eight yards out.
Cameroon were simply unable to find a spark to ignite their play and in the end the Indomitable Lions limped out of the tournament.
Ivory Coast will hope that Yaya Toure has not done the same, as the Manchester City midfielder looked to be carrying an injury when he was substituted on 82 minutes.