Ex- African Footballer of the Year the Napoli star was instrumental in Nigeria build a 3-0 lead, before the Super Eagles were compelled to defend resolutely for a narrow victory.
Nigeria weathered a stunning comeback attempt from their opponents to progress to the last 16 of the Afcon tournament being held in Morocco.
Jose Peseiro's side appeared to be in complete control in their pool clash in the Moroccan city, enjoying a 3-0 cushion with just 17 minutes remaining courtesy of goals from Victor Osimhen, Wilfred Ndidi and Ademola Lookman.
However, a Tunisian defender reduced the deficit with a powerful header from a Manchester United midfielder set-piece, sparking hopes of a turnaround.
The tension escalated when the North Africans were awarded a late penalty after a video assistant referee check spotted a handball by Bright Osayi-Samuel. The left-back calmly slotted home in the dying stages to create a frantic conclusion.
Tunisia came agonizingly close from a last-gasp equalizer in stoppage time, with their skipper heading a opportunity narrowly wide before Ismael Gharbi guided a half-volley past the goal frame.
Securing First Place
The victory means that Nigeria, champions of the competition on 3 past instances, advance to 6 group points and are guaranteed first place in their pool with one game still to be contested.
For the round of 16, they will face a third-placed side from either the other preliminary groups.
In the other match, the 2004 champions remain on 3 group points, with Uganda and Tanzania locked on one point each after playing out a 1-1 stalemate in the day's other fixture.
The final group matches will see the group leaders stay in Fes to play the Cranes on the next matchday, while the Eagles of Carthage return to Rabat to confront Tanzania.
An Anxious Finish
Ali Abdi smashed home from the penalty spot to give his team hope of snatching a point.
Nigeria, runners-up in the 2023 tournament, become the second team after the Pharaohs to qualify for the next phase, but coach Eric Chelle and supporters will undoubtedly be feeling relieved.
What seemed set to be a straightforward last period morphed into a nerve-wracking affair.
The prolific striker had a goal disallowed for offside before breaking the deadlock on the stroke of half-time, expertly guiding a header into the bottom corner from an Atalanta winger delivery.
The lead was doubled early in the second half when the Leicester City midfielder climbed above everyone to power home a powerful nod from a Lookman corner.
Osimhen then set up his teammate for the seemingly decisive goal, before the defender to direct a header past goalkeeper Stanley Nwabali to begin the fightback.
The pivotal incident came when a looping cross struck the forearm of Bright Osayi-Samuel, with the official awarding a penalty after consulting the VAR monitor.
Although the defender's successful penalty, the 2004 champions in the end came up just short of pulling off a remarkable recovery.
Tunisia's destiny is still in their control; a draw against Tanzania will be sufficient to see them through, and their coach will be keen to avoid a recurrence of the past early elimination that led to his previous resignation.