Madagascar is through to the last eight of the 2019 Africa Cup of Nations for the first time ever, after beating the Democratic Republic of Congo 4-2 on penalties.
The match had ended 2-2 in regulation time.
The tournament debutants had upset Nigeria to finish top of their group.
They added another major scalp by edging the two-time champions to set up a meeting with either Tunisia or Ghana in the last eight.
Ibrahim Amada had opened the scoring for Madagascar in the ninth minute but Cedric Bakambu equalised in the 21st minute.
Madagascar restored their lead in the 77th minute through veteran captain Faneva Ima Andriatsima but Chancel Mbemba made it 2-2 in the final seconds to take the game into extra time.