Algeria booked an Africa Cup of Nations semi-final with Nigeria, after battling past Ivory Coast 4-3 on penalties after a 1-1 draw in Suez on Thursday.
Sofiane Feghouli broke the deadlock in the first half for Algeria, after Baghdad Bounedjah squared it to the midfielder.
After the break, Bounedjah hit the bar from the penalty spot after earning Algeria a penalty.
They were made to pay just after the hour-mark when the Ivory Coast equalised through forward Jonathan Kodjia, who fired a superb shot into the far corner.
Ivory Coast were more impressive in the early stages of the game. Midfielder Ibrahim Sangare and forward Max-Alain Gradel were selected to start in place of Jean-Philippe Gbamin and Nicolas Pepe.
Algeria retained the team that started a last-16 thrashing of Guinea, a result which confirmed the belief of many rival coaches that the Desert Foxes are the team to beat.
This was the eighth Cup of Nations meeting between the countries with Ivory Coast holding a 3-2 lead and two matches drawn.
The match ultimately went the distance, as the 1-1 draw forced extra time, and then a penalty shootout.
After five perfect penalties, Wilfried Bony saw his penalty saved. Algeria’s Youcef Belaili hit the post when he had the chance to clinch victory for Algeria.
Then a subsequent penalty miss from Ivory Coast’s Captain Serey Die sent the Algerians through.