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.
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.