Tunisia will face Africa Cup of Nations debutants Madagascar in the quarter-finals after beating Ghana 5-4 on penalties on Monday.
Goalkeeper Farouk Ben Mustapha was the hero, coming on for the shootout and saving Caleb Ekuban’s penalty.
Alain Giresse’s side drew all three of their group games but seemed set for a first victory thanks to Taha Khenissi’s second-half strike, only for substitute Rami Bedoui to head an own goal with his first touch in added time.
Tunisia sent on goalkeeper Farouk Ben Mustapha to replace Mouez Hassen ahead of the shoot-out and he kept out Caleb Ekuban’s poor effort, allowing Ferjani Sassi to hit the winning spot-kick and book a last-eight clash with tournament debutants Madagascar.
Tunisia, who last won the AFCON in 2004, now face surprise package Madagascar, ranked 108th in the world, on Thursday.