Youssef Msakni (centre) is featuring at his seventh Nations Cup for Tunisia
Tunisia upset 10-man Nigeria to set up a quarter-final tie against Burkina Faso at the Africa Cup of Nations.
Youssef Msakni beat Super Eagles keeper Maduka Okoye with a long-range effort two minutes into the second half.
Nigeria's task was made harder when Alex Iwobi was sent off following a video assistant referee review.
The West Africans were the only side to win all three group games in Cameroon, but were largely subdued against a Tunisia side hit by Covid-19.
Nigeria forward Umar Sadiq fired across goal and wide in injury time after Moses Simon had earlier had an effort blocked by Bechir Ben Said.
Tunisia, Nations Cup winners in 2004, will face Burkina Faso in the last eight on Saturday, 29 January.
Depleted Tunisia down Super Eagles
Three-time African champions Nigeria were fancied to go deep in the competition after impressing under interim coach Augustine Eguavoen against Egypt, Sudan and Guinea-Bissau.
Tunisia, meanwhile, had lost twice in the group stage - including to debutants The Gambia - and were without coach Mondher Kebaier and a host of players after positive tests for coronavirus.
Influential captain Wahbi Khazri was only fit enough to take his place among the substitutes but the North Africans had the best chance in the first half in Garoua, as defender Montassar Talbi had an effort cleared off the line.
Nigeria offered little in reply as Wilfred Ndidi sent a bicycle kick wide and Joe Aribo had a shot blocked behind.
Msakni caught out Okoye, who hassigned for Watfordbut is on loan at Sparta Rotterdam, with a low effort from almost 30 yards to break the deadlock soon after the restart.
The shot went past two Nigeria defenders before swerving and bouncing in front of Okoye, who got his outstretched left hand to the ball but could not keep the strike out.
Iwobi was sent on as a 59th-minute substitute but was dismissed just seven minutes later after catching Msakni on the top of the ankle with his studs - even though the Everton midfielder had appeared incredulous when initially shown yellow.
Tunisia midfielder Naim Sliti had a curling effort saved while Nigeria struggled to create chances as the Carthage Eagles sat back and soaked up pressure to complete victory.
Eguavoen is set to be replaced by Jose Peseiro as Super Eagles coach and the Portuguese's first task will be to navigate a two-legged World Cup 2022 play-offagainst fierce West African rivals Ghana.
Tunisia forward Wahbi Khazri consoled players on the Nigeria bench after full-time
Line-ups
Nigeria
Formation4-2-3-1
1Okoye
2Aina5Troost-Ekong22Omeruo12Sanusi
4Ndidi10Ayodele-Aribo
17Chukwueze14Iheanacho15Simon
19Awoniyi
1Okoye
2Aina
5Troost-Ekong
22Omeruo
12Sanusi
4Ndidi
10Ayodele-AriboSubstituted forMusaat88'minutes
17ChukwuezeSubstituted forSadiqat75'minutes
14IheanachoBooked at 20minsSubstituted forIwobiat59'minutesBooked at 66mins
Attempt missed. Wilfred Ndidi (Nigeria) header from outside the box misses to the right. Assisted by Zaidu Sanusi following a set piece situation.
Substitution, Tunisia. Omar Rekik replaces Anis Ben Slimane.
Ahmed Musa (Nigeria) wins a free kick in the attacking half.
Foul by Issam Jebali (Tunisia).
Attempt missed. Wahbi Khazri (Tunisia) right footed shot from more than 40 yards on the left wing misses to the right. Assisted by Oussama Haddadi.
Attempt blocked. Kenneth Omeruo (Nigeria) header from the centre of the box is blocked. Assisted by Moses Simon with a cross.
Ahmed Musa (Nigeria) wins a free kick on the left wing.
Foul by Bilel Ifa (Tunisia).
Attempt missed. Umar Sadiq (Nigeria) right footed shot from the right side of the box is close, but misses to the left. Assisted by Peter Oladeji Olayinka.
Ola Aina (Nigeria) wins a free kick in the defensive half.
Foul by Issam Jebali (Tunisia).
Foul by Kenneth Omeruo (Nigeria).
Issam Jebali (Tunisia) wins a free kick in the defensive half.
Substitution, Nigeria. Ahmed Musa replaces Joe Ayodele-Aribo.
Attempt missed. Wilfred Ndidi (Nigeria) right footed shot from outside the box misses to the left. Assisted by Moses Simon.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookies
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.