Senegal reached the Africa Cup of Nations semi-finals for the first time since 2006 when Idrissa Gueye scored to deliver a 1-0 last-eight win over Benin in Cairo on Wednesday.
Everton midfielder Gueye struck on 70 minutes, side-footing the ball into the net from close range after being set up by Liverpool star Sadio Mane.
This was the first Cup of Nations match to use the VAR (video assistant referee) system and there were no controversial incidents.
Also in the day, Nigeria sneaked into the Africa Cup of Nations semi-finals when defender William Troost Ekong scored with one minute remaining to give them a 2-1 win over a gallant South Africa as the tournament served up more drama.
Troost Ekong, left unmarked by the South Africa defence, turned the ball in with his knee from a corner just as Nigeria seemed to be in danger of throwing away a game they had dominated for more than an hour.
Nigeria stayed in control, missed chances and paid the price when Bongani Zungu headed an equaliser in the 71st minute with South Africa’s first shot on target.
The goal was initially ruled offside but then awarded after a VAR check — the first major intervention by technology since it was introduced for the quarter-finals.
Nigeria, who will meet Ivory Coast or Algeria in the last four, went ahead with the first really dangerous attack of the match.