Ivory Coast were made to struggle by rank outsiders Namibia, before winning 4-1 to reach the last 16 at the Africa Cup of Nations on Monday.
Max Alain Gradel and Geoffroy Serey were both on the score sheet for the Elephants in each half.
Namibia missed two early chances to take a shock lead, but pulled a goal back when Joslyn Kamatuka pounced on a mistake by goalkeeper Sylvain Gbohou.
Wilfried Zaha and Maxwel Cornet added two more in the last 10 minutes to give the scoreline a flattering look on another hot Cairo evening.
Two time champions Ivory Coast finished second in Group D with six points from three games, while Namibia ended bottom after losing all their matches.
Morocco topped the group with nine points after their 1-0 win over South Africa who finished third with three points.