Former African Footballer of the Year Victor Osimhen helped Nigeria build a commanding lead, before the Super Eagles were forced to hold on for a narrow victory.
The three-time champions weathered a dramatic comeback attempt from their opponents to advance to the last 16 of the 2025 Africa Cup of Nations being held in the host nation.
The Super Eagles appeared to be cruising in their pool encounter in Fes, enjoying a three-goal lead with just a quarter of an hour remaining courtesy of strikes from their attacking trio.
Yet, a Tunisian defender reduced the deficit with a close-range finish from a Hannibal Mejbri free-kick, sparking hopes of a recovery.
The tension escalated when Tunisia were awarded a late penalty after a VAR check identified a handball by the Nigerian defender. Ali Abdi converted in the 87th minute to set up a nail-biting finale.
The Carthage Eagles came agonizingly close from a stunning equalizer in added time, with their skipper heading a chance narrowly wide before a substitute sent a half-volley past the goal frame.
Clinching Top Spot
This result ensures that Nigeria, champions of the competition on three previous occasions, move to 6 points and are assured top spot in Group C with one game left 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, Tunisia stay on 3 points, with Uganda and Tanzania locked on a single point after registering a 1-1 stalemate earlier on Saturday.
The concluding group fixtures will see Nigeria stay in the city to play the Cranes on Tuesday, while the Eagles of Carthage return to the capital to confront Tanzania.
An Anxious Conclusion
Ali Abdi smashed home from the penalty spot to offer Tunisia hope of earning a point.
Nigeria, finalists in the 2023 edition, become the second nation after Egypt to qualify for the next phase, but their manager and supporters will certainly be breathing a sigh of relief.
What looked like set to be a straightforward final quarter transformed into a nerve-wracking affair.
The prolific striker had a effort ruled out for offside before breaking the deadlock on the stroke of half-time, expertly guiding a header into the far post from an Atalanta winger delivery.
The advantage was doubled early in the second half when Wilfred Ndidi climbed above everyone to power home a powerful nod from a Lookman kick.
Osimhen then set up his teammate for the seemingly decisive goal, before the defender to steer a header past goalkeeper Stanley Nwabali to begin the fightback.
The pivotal incident arrived when a looping cross hit the arm of Bright Osayi-Samuel, with the official awarding a penalty after consulting the VAR monitor.
Although Ali Abdi's successful penalty, Tunisia in the end fell short of completing a remarkable comeback.
Their fate remains in their control; a draw against Tunisia will be sufficient to secure progression, and their coach will be eager to avoid a recurrence of the past group-stage exit that resulted in his previous resignation.