England 354 (Brook 111, Foakes 64, Pope 51, Nauman 4-126, Abrar 4-150) and 112 for 2 (Duckett 50*, Abrar 2-43) need 55 more runs to beat Pakistan 304 (Babar 78, Salman 56, Leach 4-140) and 216 (Babar 54, Shakeel 53, Rehan 5-48, Leach 3-72)
Karachi: Rehan Ahmed's stunning five-wicket haul left England on the verge of victory in the third Test against Pakistan and a historic clean sweep.
Ahmed, making his debut as the youngest man to play a Test for England, ripped through the home batting on the third day in Karachi.
At 18 years and 128 days, his 5-48 made him the youngest man to take a five-wicket haul on Test debut. He was the architect of a Pakistan collapse of seven wickets for 52 runs.
Jack Leach had earlier raised the prospect of a three-day finish with three wickets in the first hour, only for half-centuries from Babar Azam and Saud Shakeel to delay England.
But Ahmed, held back until the 42nd over of the day, had Babar caught at mid-wicket to send Pakistan tumbling to 216 all out.
Even with only a maximum of 22 overs left in the day, England sprinted after their target of 167 - openers Zak Crawley and Ben Duckett added 87 in 11.3 overs before Crawley fell for 41.
Sensationally, Ahmed appeared at number three and smashed his first ball for four, only to be bowled swiping at Abrar Ahmed for 10.
Even then, captain Ben Stokes promoted himself to number four, but the nightfall left the tourists 55 runs short on 112-2, with Duckett unbeaten on 50.
Until Ahmed came into the attack more than an hour into the afternoon session, England were facing the prospect of a long day and tough chase. Babar and Shakeel were set, the pitch asleep and the lead at 114.
In an unchanged spell of 12.5 overs, the teenager produced a mesmerising display in only his fourth first-class match.
There was a huge element of fortune in his first wicket - the stunned Babar pulled an awful long-hop to mid-wicket, where Ollie Pope took a sharp reaction catch.
Ahmed grew in confidence, bounding in, landing dipping leg-breaks and dangerous googlies. Mohammad Rizwan edged behind and Shakeel top-edged a sweep to give Ahmed three wickets for nine runs in the space of 17 balls.
In between Joe Root having Faheem Ashraf caught at slip and Mark Wood pinning Nauman Ali leg before, Ahmed enticed Mohammed Wasim to miscue to mid-off.
When Salman Agha swept to short fine leg to give Ahmed his fifth, the teenager kissed the turf then led England from the field to the acclaim of the travelling fans, including his tearful father Naeem.