Ex- Continent's Best Player of the Year Victor Osimhen helped Nigeria establish a 3-0 advantage, but they were compelled to defend resolutely for a narrow win.
Nigeria survived a dramatic comeback attempt from Tunisia to advance to the last 16 of the 2025 Africa Cup of Nations taking place in Morocco.
The Super Eagles appeared to be in complete control in their Group C clash in Fes, enjoying a 3-0 lead with just a quarter of an hour remaining courtesy of strikes from Victor Osimhen, Wilfred Ndidi and Ademola Lookman.
Yet, Montassar Talbi pulled one back with a powerful header from a Hannibal Mejbri set-piece, igniting hopes of a recovery.
The drama escalated when Tunisia were given a late penalty after a video assistant referee check identified a handball by the Nigerian defender. Ali Abdi calmly slotted home in the 87th minute to set up a nail-biting conclusion.
The Carthage Eagles came agonizingly close from a stunning leveler in stoppage time, with their skipper directing a opportunity just past the post before Ismael Gharbi sent a half-volley past the upright.
Clinching Top Spot
This result ensures that Nigeria, champions of the tournament on 3 previous occasions, move to six points and are guaranteed top spot in their pool with one game still to play.
For the round of 16, they will face a third-placed team from either Group A, B or F.
In the other match, the 2004 champions remain on three group points, with the East African teams tied on one point after playing out a 1-1 stalemate earlier on Saturday.
The concluding group matches will see Nigeria remain in the city to take on Uganda on the next matchday, while Tunisia travel back to Rabat to face the Taifa Stars.
A Nervy Finish
Ali Abdi smashed home from the penalty spot to offer Tunisia a glimmer of hope of snatching a draw.
The Super Eagles, runners-up in the 2023 edition, are the next nation after Egypt to reach the knockout stage, but coach Eric Chelle and fans will certainly be feeling relieved.
What looked like set to be a straightforward last period transformed into a nerve-wracking affair.
The prolific striker had a effort disallowed for offside before breaking the deadlock on the stroke of half-time, precisely placing a glancing effort into the far post from an Atalanta winger cross.
The advantage was extended soon in the second period when Wilfred Ndidi rose highest to thump in a powerful nod from a set-piece corner.
The number 9 then set up Lookman for the seemingly decisive goal, before the defender to direct a powerful header past goalkeeper Stanley Nwabali to initiate the fightback.
The key incident came when a high ball hit the forearm of Bright Osayi-Samuel, with referee Boubou Traore awarding a penalty after consulting the pitchside screen.
Despite Ali Abdi's confident conversion, the 2004 champions in the end fell short of pulling off a stirring comeback.
Tunisia's destiny is still in their own hands; a point against Tanzania will be sufficient to secure progression, and their coach will be keen to avoid a recurrence of the 2013 group-stage exit that resulted in his departure.