Africa Cup of Nations debutants Madagascar produced another upset to beat DR Congo 4-2 on penalties after a 2-2 draw and seal a quarter-final spot.
In a thriller, Madagascar took a surprise lead through Ibrahim Amada's superb 20-yard strike before Cedric Bakambu equalised with a header.
The Indian Ocean islanders restored their lead through Faneva Andriatsima's header before Chancel Mbemba's 90th-minute equaliser forced extra-time.
Madagascar scored all their penalties.
In contrast, DR Congo missed two, with Everton winger Yannick Bolasie's attempt going over the bar to confirm Madagascar a quarter-final against Ghana or Tunisia in Cairo on Thursday.
Having beaten three-time winners Nigeria in the group stage as well as Burundi, Madagascar's fairytale run continues after another impressive performance in Alexandria, Egypt.
They were 190th in Fifa's rankings five years ago but have now advanced further in this tournament than hosts Egypt and holders Cameroon, both of whom went out on Saturday.
Before their 90th-minute equaliser, DR Congo were denied a penalty in controversial circumstances when Britt Assombalonga appeared to be fouled by Thomas Fontaine.
However, with the video assistant referee system not being used until the quarter-finals, their appeals were ignored.
- Loss of concentration to be blamed for Ghana’s inability to win titles - M.N.D Jawula
- AFCON 2021 dates to be decided by CAF and host nation
- Pitch invader steals show in Ghana's win over South Africa
- U-23 AFCON: Habib Mohammed scores late to grab Black Meteors draw against Cameroon
- U-23 AFCON: Evans Mensah named Man-of-the Match in Ghana’s draw with Cameroon
- Read all related articles