The Atlas Lions opened the score in the 7th minute thanks to Sofiane Boufal on a penalty, before Mohammed Salah equalized at the beginning of the second half (53th). Trézéguet scored the winning goal for the Egyptians in extra time (100th).
In the semifinals, Egypt will meet Cameroon, the host country, which eliminated Gambia (2-0).