Third Test, Multan, day four: Pakistan 175 & 262-9 beat Bangladesh 281 & 154 by one wicket
Inzamam-ul-Haq dashed Bangladesh's hopes of a first Test win with the 18th century of his Test career.
Inspired by playing in front of a home town crowd, he made an unbeaten 138 and completed a 3-0 series whitewash for Pakistan with the 20th boundary of his innings.
In a thrilling finish, Umar Gul was run out with four runs still needed, bringing 18-year-old Yasir Ali to the crease.
He kept out two deliveries from Bangladesh skipper Khaled Mahmud before flicking him away for a single, and Inzamam put away the final ball of the over to clinch victory.
It was the second time in the series that Pakistan had come from behind to win after conceding a first innings deficit.
And they were also indebted to Shabbir Ahmed and Umar Gul, who shared vital partnerships with Inzamam after picking up 15 wickets between them in the match.
Bangladesh have now lost 23 out of 24 matches since being granted Test status, but were compeitive in every match in the series, their first under the tutelage of coach Dav Whatmore.
They needed four wickets for victory at the start of play with Pakistan in trouble on 148-6.
Mahmud made an early breakthrough when he had Saqlain Mushtaq caught behind for 11, but Shabbir helped add 41 priceless runs for the eighth wicket before he was lbw to Mohammad Rafique for 13 - his highest Test score.
Number ten Gul survived 41 deliveries before the lunch interval which arrived with Pakistan on 250-8 and 11 short of their target.
But there was a final twist when he was run out for five by Mohammad Ashraful's throw after a mix-up with Inzamam at the start of the fourth over following the re-start, bringing to an end a stand of 52.
Last man Yasir kept his head under enormous pressure, however, and Inzamam lifted the tension among the Pakistan fans with the winning four.
Pakistan: Mohammad Hafeez, Salman Butt, Yasir Hameed,
Inzamam-ul-Haq, Farhan Adil, Younis Khan, Rashid Latif (captain),
Saqlain Mushtaq, Umer Gul, Shabbir Ahmad, Yasir Ali
Bangladesh: Hannan Sarkar, Javed Omar, Habibul Bashar, Mohammad
Ashraful, Razin Saleh, Alok Kapali, Khaled Mashud, Khaled Mahmud
(captain), Mohammad Rafique, Tapash Baisya, Manjurul Islam