Africa Cup of Nations debutants Madagascar kept their remarkable run going on Sunday with a penalty shootout victory over the Democratic Republic of Congo after a 2-2 draw to secure a place in the quarter-finals.
Ibrahim Amada's wonder strike put Madagascar ahead just nine minutes in at Alexandria Stadium but DR Congo responded swiftly as China-based forward Cedric Bakambu headed home his third goal in two matches.
Madagascar captain Faneva Andriatsima nodded the Indian Ocean islanders back ahead with a quarter-hour remaining only for Chancel Mbemba to haul DR Congo level at a corner in the final minute.
Marcel Tisserand and Yannick Bolasie both blazed over for DR Congo in the shootout as Madagascar prevailed 4-2 with their reward a meeting with four-time winners Ghana or 2004 champions Tunisia for a place in the semi-finals.
Marco Ilaimaharitra's suspension forced Madagascar coach Nicolas Dupuis to alter his line-up for the first time in the tournament with Rayan Raveloson deputising in midfield for a team that shocked Nigeria 2-0 to advance as group winners.
Britt Assombalonga replaced the injured Jonathan Bolingi in the lone change to the DR Congo side that trounced Zimbabwe 4-0, with captain Youssouf Mulumbu describing their qualification as a "miracle" following two opening losses.
Madagascan President Andry Rajoelina chartered a 480-seater plane to take fans to Egypt, and the travelling support was soon rejoicing when Amada blasted a sensational 25-yard strike that tailed away from Ley Matampi and flew in off the post.
The jubilant celebrations were halted midway through the first half though when Bakambu slipped free of the Madagascar centre-backs to glance in Glody Ngonda's bending cross.