Bangladesh celebrated a historic first-ever Test series win over Pakistan with a 2-0 clean sweep following a tense six-wicket victory in Rawalpindi on Tuesday.
Shakib Al Hasan hit the winning boundary 25 minutes before the tea break on the fifth and final day to spark jubilation in the away dressing room.
A handful of Bangladesh supporters waving the nation's flag were also there to see their country win only a third away series in 33 attempts.
Shakib remained unbeaten on 21 and Mushfiqur Rahim was on 22 as the visitors painstakingly overhauled the tricky 185-run target.
Openers Zakir Hasan (40) and Shadman Islam (24), plus skipper Najmul Hossain Shanto (38) and Mominul Haque (34), all put runs on the board to help Bangladesh inch their way to a famous win.
Pakistan scored 274 and 172 while Bangladesh recovered from 26-6 to make 262 in their first innings.
Litton Das's 138 rescued Bangladesh with the bat before fast bowlers Hasan Mahmud (5-43) and Nahid Rana (4-44) wrecked Pakistan on Monday with career-best figures.
Bangladesh won the first Test by 10 wickets -- also in Rawalpindi -- for their first victory over Pakistan in 14 matches.
Bangladesh outplayed the home team in both Tests and were the better bowling side despite having an inexperienced pace attack.
Before this, Bangladesh's only away Test series wins came in the West Indies in 2009 and Zimbabwe three years ago.
Test scores
Brief scores after the second and final Test between Pakistan and Bangladesh in Rawalpindi on Tuesday:
Pakistan 274 (Saim Ayub 58, Shan Masood 57, Salman Agha 54; Mehidy Hasan Miraz 5-61, Taskin Ahmed 3-57) and 172 (Salman Agha 47 not out, Mohammad Rizwan 43; Hasan Mahmud 5-43, Nahid Rana 4-44)
Bangladesh 262 (Litton Das 138, Mehidy Hasan Miraz 78; Khurram Shahzad 6-90, Salman Agha 2-13, Mir Hamza 2-50) and 185-4 (Zakir Hasan 40, Najmul Hossain Shanto 38)
Result: Bangladesh won by six wickets, take series 2-0
Toss: Bangladesh
First Test: Bangladesh won by 10 wickets