10-man Benin stunned Africa Cup of Nations title contenders Morocco in a penalty shootout on Friday to reach the quarter-finals after a 1-1 draw in Cairo.
Moise Adilehou forced home at a corner early in the second half to put Benin on course for a shock win but Youssef En-Nesyri equalised for Morocco before Ajax star Ziyech blew the chance to snatch victory by striking the post from the spot in the 96th minute.
Benin were forced to play most of extra time a man down after Khaled Adenon received a second yellow card for dissent, but they prevailed 4-1 in the shootout following misses by Sofiane Boufal and En-Nesyri to set up a clash with Senegal or Uganda on July 10 for a spot in the semi-finals.
With this, Benin have now played a total of 13 games in the history of the African Cup of Nations without winning a single game.
This year they only scraped through to the knockout rounds on the back of three draws after holding both Ghana and reigning champions Cameroon.