Younis Khan smashed an unbeaten double hundred and Asad Shafiq helped himself to his maiden Test century before regular strikes put Pakistan on course for a win in the first Test against Bangladesh on Sunday.
Mohammad Hafeez, Saeed Ajmal, Abdur Rehman and Aizaz Cheema each grabbed a wicket as Bangladesh were left struggling at 134-4 in the second innings at the close on day three having conceded a 459-run first-innings lead.
Debutant opener Nazimuddin and ex-captain Shakib Al Hasan were both batting on 41 when the bails were taken off.
Pakistan captain Misbah-ul Haq declared on 594 for five wickets immediately after Younis converted his 19th Test century into his third double hundred with two runs from a Shakib delivery.
Younus, 200 not out, struck 18 fours and three sixes in his 290-ball knock.
Unbeaten on 96 overnight, the right-handed batsman completed his century off the third ball of the morning, flicking a boundary off Shahadat Hossain.
Younus was caught by Elias Sunny off Rubel Hossain on 138 only for the umpire to rule it as a no-ball.
Shafiq (104), dropped by Rubel Hossain off Shahadat when on 43, also made the most of his reprieve to score his maiden Test century.
Shahriar Nafees took the catch at long-off off Sunny to end his patient knock off 235 balls featuring nine fours and two sixes.
Bangladesh lost a wicket on the fifth ball into the third session when Tamim Iqbal misjudged a Mohammad Hafeez delivery and was bowled for 15.
Shahriar Nafees was dropped by Younus off Umar Gul at slip, but he was unable to cash in on when he was trapped lbw by Saeed Ajmal for 28.
Mohammad Ashraful completed his nightmarish comeback into the test side, following his single in the first innings with a duck when he was caught by Hafeez off Rehman.
Nasir Hossain, promoted up in the order, was unable to replicate his recent form and mistimed a pull shot off Cheema to be caught by Hafeez for three.
Scoreboard
Bangladesh (first innings) 135 all out
Pakistan (first innings) 415-4 overnight
Mohammad Hafeez lbw b Elias Sunny 143
Taufiq Umar lbw b Mahmudullah 61
Azhar Ali c Rahim b Shahadat Hossain 26
Younis Khan not out 200
Misbah-ul-Haq lbw b Elias Sunny 20
Asad Shafiq c Nafees b Sunny 104
Adnan Akmal not out 6
Extras: (b-1 w-1 lb-20, nb-12) 34;
Total: (five wickets declared; 176.5 overs) 594;
Fall of wickets: 1-164, 2-220, 3-265, 4-311, 5-570;
Bowling: Shahadat Hossain 27-3-113-1(w-1 nb-6), Rubel Hossain 25-1-97-0(nb-6), Mahmudullah 30-7-94-1, Shakib Al Hasan 41.5-7-121-0, Elias Sunny 47-7-123-3, Nasir Hossain 2-0-5-0, Mohammad Ashraful 4-0-20-0.
Bangladesh (second innings)
Tamim Iqbal b Mohammad Hafeez 15
Nazimuddin not out 41
Shahriar Nafees lbw b Saeed Ajmal 28
Mohammad Ashraful c Hafeez b Abdur Rehman 0
Nasir Hossain c Hafeez b Aizaz Cheema 3
Shakib Al Hasan not out 41
Extras: (lb-4 nb-2) 6;
Total: (four wickets; 39 overs) 134;
Fall of wickets: 1-24, 2-74, 3-75, 4-80;
Bowling: Umar Gul 9-1-37-0 (nb-2), Aizaz Cheema 7-1-40-1, Mohammad Hafeez 7-2-21-1, Saeed Ajmal 8-2-17-1, Abdur Rehman 8-3-15-1.