Egypt booked an African Nations Cup semi-final showdown with Senegal after defeating the Democratic Republic of Congo 4-1 on Friday.
Two goals from Ahmed Hassan, one a penalty, and others from Hossam Hassan and Emad Moteab ensured the hosts progressed despite their opponents giving themselves a chance seconds before half-time when Abdelzaher El Saqqa's own goal made it 2-1.
DR Congo could have taken a shock lead after only 23 seconds when Lomana LuaLua curled a right-footed shot from 25 yards just over the crossbar.
Egypt responded with their first effort at goal in the fifth minute when a corner on the left was played to Mohamed Barakat but he dragged his shot wide of Pascal Kalemba's right-hand post.
Amir Zaki, in for the not fully-fit Mido, could have put the hosts ahead moments later when he almost connected with the ball after lunging at Tarel El Sayed's cross to the far post.
Egypt stepped up the pressure with Hossam Hassan firing a long-range shot straight at Kalemba but they had to be wary at the other end as the pace of LuaLua almost embarrassed Ibrahim Said, who pulled back the Congo striker 25 yards from goal but the free-kick was wasted.
Mohamed Shawki was booked in the 20th minute for a crude foul on Tshinyama Tshiolola, who was carried off on the stretcher cart but able to return later.
Moteab's first touch let him down badly as he received the ball between the two Congo centre-halves but sent the ball spinning off for a goal-kick, although Egypt were ahead two minutes later.
Zaki was brought down by Ndandu Kasongo on the left of the penalty area and from the spot Ahmed Hassan just beat Kalemba's dive to his right.
Four minutes from half-time Egypt powered into a 2-0 lead when Zaki's crossfield pass from the inside-left channel superbly picked out Hossam Hassan, Africa's most-capped player, who fired high into the net.
But with the hosts looking comfortable they conceded a needless own goal in first-half injury time when a cross from the DR Congo left caused panic in the penalty area and Cyrille Mubiala's shot was stabbed past his own goalkeeper, Essam Al Hadari, by El Saqqa.
Two minutes into the second half Kalemba made a good close-range save from Hossam Hassan as Egypt picked up the pace again but they almost conceded a soft equaliser when Al Hadari fluffed his clearance straight to LuaLua but when he immediately returned his shot the goalkeeper had recovered his position to punch away.
Kalemba made a great double save in the 56th minute, parrying Tarek El-Sayed's shot and then denying Moteab's follow-up header.
However, the DR Congo goalkeeper was powerless to prevent Egypt's third two minutes later after his defence failed to clear their lines and an untidy scramble ended with Moteab prodding home.
In the 77th minute Biscotte Mbala weaved his way into the area and past three defenders but when he unleashed a shot from 14 yards it cannoned back off the crossbar in DR Congo's best chance of the second half.
And, two minutes from time, Ahmed Hassan curled in a low free-kick from wide on the left which bounced in the penalty area but evaded a crowd of players before finding the far corner of Kalemba's goal.