Egypt qualified for the quarter-finals of the Olympics with a deserved 3-1 win over Belarus at Hampden Park.
The North Africans struggled to break down a dogged Belarusian side in the opening period but got the all-important breakthrough 11 minutes after the break as Mohamed Salah sweetly controlled a long ball through the middle and slotted home his third goal of the competition.
Belarus responded by abandoning the caution they had shown for the first hour, but that only made them more susceptible to the counter-attack and two flowing moves from the Egyptians allowed Marwan Mohsen and then Mohamed Aboutrika the easiest of finishes.
Andrei Voronkov pulled one back with a fine header three minutes from time but it was too little too late for Belarus, who bow out of their first ever Olympics at the group stages.
With the Europeans knowing a draw would be enough to carry them into the last-eight, Egypt had to be patient throughout a generally uneventful opening period.
Hassan Hossam, Meteab Emad and Salah all had efforts from distance comfortably saved by Aleksandr Gutor, while Belarus nearly took a surprise lead in the last action of the first half as Igor Kuzmenok headed just over.
The opening goal did arrive shortly after half-time though as Salah, whose pace caused the Belarusian backline problems all afternoon, got in behind once again and this time teed himself up perfectly to slot low into Gutor's right-hand corner.
The Belarus response was positive as they twice came close to an equaliser through Aleksievich Ilya's dipping effort and Stanislav Dragun's header that looped just over, but they were also being exposed by Egypt's speed on the break.
The killer second goal arrived at the end of a wonderful team move as Aboutrika freed Eslam Ramadan down the left and his cross was tucked home by Mohsen.
And Aboutrika added the third himself six minutes later as Gaber Omar unselfishly squared for his captain to tap into the empty net.
To their credit, Belarus kept going and were rewarded for their efforts on 87 minutes when Voronkov bulleted home Dmitry Baga's corner, but it is Egypt who progress and they will now face Japan or Honduras at Old Trafford on Saturday.