Pakistan batted throughout the third day for the loss of just one wicket to take complete control of the final Test against England on Thursday.
The home side, needing only a draw to win the series and condemn England to their first series defeat for two years, were 446 for five in their first innings, a lead of 158.
Mohammad Yousuf took his overnight total of 84 to 183 not out and wicketkeeper Kamran Akmal was unbeaten on 115, the pair sharing an unbroken sixth-wicket partnership of 199.
Nightwatchman Shoaib Akhtar was the only wicket to fall, caught by Shaun Udal off Liam Plunkett for his highest test score of 38.
Yousuf added 67 with Shoaib before joining forces with wicketkeeper Akmal, who scored his second Test hundred to put Pakistan in the driving seat.
Yousuf, closing in on his third Test double century, shrugged off a shoulder injury to reach his 14th Test hundred and third against England in style by hitting off spinner Shaun Udal straight over his head for six.
Shoaib had also smashed Udal for two sixes in the mid-wicket area.
Akmal, 23, went to his hundred by driving Plunkett smoothly through covers but not before surviving a chance at 95 when Marcus Trescothick put him down at slip off Plunkett, the only bowler to consistently pitch the ball up on a benign track.
Udal was given only 12 overs and Pakistan's fine batting ensured their skipper Inzamam-ul-Haq had more time to recover from a wrist injury sustained fending off a short pitched ball from Steve Harmison on Wednesday.
The sixth-wicket stand bettered Pakistan's previous best against England, 145 between Mushtaq Mohammad and Intikhab Alam at Hyderabad in 1972-73.
Scorecard
England (1st innings): 288 (P. Collingwood 96, M. Vaughan 58, M. Trescothick 50)
Pakistan (1st innings): (Overnight: 185-4)
S. Malik c Plunkett b Hoggard 0
S. Butt c G. Jones b Plunkett 28
A. Kamal lbw b Hoggard 5
M. Yousuf not out 183
Inzamam-ul-Haq retired hurt 35
H. Raza c Flintoff b Harmison 21
S. Akhtar c Udal b Plunkett 38
K. Akmal not out 115
Extras: (b-1, lb-9, nb-7, w-4) 21
Total: (for 5 wickets, 127.4 overs) 446
Fall of wickets: 1-0, 2-12, 3-68, 4-180, 5-247
To bat: Naved-ul-Hasan, M. Sami, D. Kaneria
Bowling: M. Hoggard 18 - 4 - 58 2, A. Flintoff 29 - 8 - 66 - 0 (nb-7, w-1), S. Harmison 33.4 - 3 - 115 1, L. Plunkett 24 - 1 - 95 - 2 (w-3), S. Udal 15 - 1 - 71 0, P. Collingwood 6 - 0 - 22 - 0, I. Bell 2 - 0 - 9 0.
More from rediff