Younis Khan hit a double century as Pakistan declared on 419-9 late on the fourth day of the first Test against Zimbabwe in Harare.
That set Zimbabwe an unlikely victory target of 342 to win, with opening batsman Tina Mawoyo falling before the close - lbw to to offspinner Saeed Ajmal - to leave the hosts on 13-1.
Younis brought up his 200 with a six during an unbeaten 88-run partnership for the final wicket with Rahat Ali, who chipped in with a brisk 35 from 40 deliveries.
Younis spent just over 10 hours at the crease, swinging the balance of the Test and effectively ending Zimbambwe hopes of being set an attainable target on the final day.
The final Pakistan pair came together with the score on 331-9 after Prosper Utseya claimed the wickets of Abdur Rehman, Ajmal and Junaid Khan in fairly quick succession.
Younis and Adnan Akmal (64) had spent the first half of the day building their impressive partnership of 118 for the sixth wicket after Asad Shafiq was dismissed for his overnight 15.
It ended when the wicketkeeper was run out, with Younis selling his partner short as he searched for a second run. Adnan faced 154 balls and hit eight fours.
It looked as though the tail would then be skittled without too much trouble until Rahat's cameo and Younis' continued push to an unbeaten 200, which came from 404 balls with 15 fours and three sixes.