Left-hander Shakib Al Hasan hit a fighting hundred to lift Bangladesh's flagging innings to 210 in the fourth day-night international against Pakistan here on Wednesday.
The 21-year-old scored 108 for his second one-day hundred and shared a Bangladesh record ninth wicket stand of 97 with Mashrafe Mortaza (38) to revive the tourists, who were reeling at 109-8 after they won the toss and batted.
Bangladesh are trailing 3-0 in the five-match series.
Hasan, who made 75 in Bangladesh's narrow 23-run defeat in the third match at Lahore on Sunday, took a double in the 47th over to reach his hundred off 115 balls with eight fours.
In all, he faced 120 balls before holing out in the last over to paceman Sohail Khan, who finished with 3-30.
The previous best ninth wicket stand for Bangladesh in one-day cricket was 62 between Khaled Mashud and Mohammad Rafique against the West Indies at St. Lucia four years ago.
Mortaza, who hit just one boundary during his 67-ball knock, was out at long-on in the 48th over.
Hasan, who came in when the