The African representatives had qualified for the knockout phase after a win against Australia in Group C
Egypt have been eliminated from the Tokyo Olympic Games after going down 1-0 to Brazil in a quarter-final match at the Saitama Stadium on Saturday.
Matheus Cunha scored the goal that gave Brazil the slim win and ended the African nation's participation in the global competition.
Egypt's well-organised defence managed to keep Brazil at bay in the opening minutes. When the South Americans, who were enjoying possession, attempted to make forward runs, they met a well-drilled Egyptian backline.
In the sixth minute, Brazil won a corner after Diego Carlos spotted Dani Alves on the flank and the former Sevilla full-back floated a cross for Richarlison, but Egypt's Mohamed El Shenawy tipped the ball over the bar.