Debutants Niger, who had shown a marked improvement from the side overwhelmed 2-0 by co-hosts Gabon in their first game on Monday, cannot now reach the last eight.
The first two goals came in the opening seven minutes but chances flowed freely thereafter.
The opener was sublime move and finish, the second bordered on the bizarre.
Tunisia’s left winger Youssef Msakni dribbled his way past four defenders before placing the ball past the left-hand side of goalkeeper Daouda Kassaly after four minutes.
Niger were soon level when a long clearance into the Tunisia penalty area dropped with some awkward back spin, fooling keeper Aymen Mathlouthi who was distracted at the same time by an attempt from Moussa
Maazou to slap the ball. It bounced onto the head of William Tonji Ngounou, who steered into an empty net.
Msakni missed with two chances soon after while at the other end Maazou wrought havoc in the Tunisia defence with his burly frame.
His power and pace saw him twice glide past the defence but go agonisingly wide.
Both sides hit the woodwork before Jemaa’s goal. Tunisia might have made it 3-1 deep in stoppage time when Oussama Darragi hit the underside of the bar but the ball bounced back into play.
Gabon and Morocco were due to meet later in Libreville in the second match of the day.
Fixtures
28 January Botswana v Guinea (6pm) Stade de Franceville
28 January Ghana v Mali (9pm) Stade de Franceville
29 January Libya v Senegal (8pm) Estadio de Bata
29 January Equatorial Guinea v Zambia (8pm) Stade d’Angondje
30 January Sudan v Burkina Faso (8pm) Estadio de Bata
30 January Cte d’Ivoire v Angola (8pm) Stade d’Angondje
31 January Niger v Morocco (8pm) Stade d’Angondje
31 January Gabon v Tunisia (8pm) Stade de Franceville
Log standings Group C:



