ON TARGET: Issam Jemaa
ISSAM JEMAA scored the winning goal in the dying minutes as Tunisia went a long way to booking their place in the semi-finals with a 2-1 over Niger.
A lively start saw two goals in seven minutes, the first from midfielder Youssef Msakni with an impressive individual effort to give Tunisia the lead. Niger levelled four minutes later through William N'Gounou.
It was their first ever goal in the AFCON and they also seemed to be heading for their first point, until the 89th minute. Jemaa beat the offside trap, dodged a tackle and sent a left shot into the back of the net.
Gabon joined fellow co-hosts Equatorial Guinea in the quarter-finals as Bruno Zita scored a free-kick in the 98th minute to complete their 3-2 win over Morocco.
Morocco started the brighter of the two and while Gabon matched them, it was the Moroccans who broke the deadlock on 24 minutes through Houssine Kharji.
The north African outfit kept their lead until midway through the second half when Pierre-Emerick Aubameyang and Daniel Cousin scored in a busy two minute spell.
Kharji grabbed his brace with a penalty, before Zita gave the co-hosts all three points and a spot in the knock-out stages.