Liton Das hit his maiden century as Bangladesh recovered from a shaky start to reach 253-4 against Pakistan on the opening day of the first cricket test on Friday.
He and Mushfiqur Rahim combined for an undefeated 204-run partnership after Bangladesh was reduced to 49-4 in the first session.
They kept the Pakistan bowlers at bay from the first half of the morning session through the entire second and third sessions.
At stumps owing to bad light, Liton was on 113 and Mushfiqur on 82.
"The guys showed a great deal of character and skills after we were 40-odd for four today," Bangladesh batting coach Ashwell Prince said.
"I was really impressed by how calm and composed Liton was. The most nervous everyone got was when Liton started getting cramps. We were hoping that his body can hang in their till the end of the day. He is going to recover tonight, and hopefully he can continue tomorrow."
The first hour belonged to the Pakistan fast bowlers, who utilized the early moisture on the pitch.
Opener Saif Hasan hit fast bowler Hasan Ali for two boundaries in the second over to hint at a good start for Bangladesh.
Opening partner Shadman Islam struggled against Shaheen Shah Afridi, who moved the ball well, but Saif grew with confidence, driving the left-arm pacer through mid-off for four.
Afridi broke through with the next delivery when Saif fended a short delivery to short leg for 14.
Shadman also fell for 14, as Ali had him leg before after leaking runs in his opening spell.
Offspinner Sajid Khan gave the side a big breakthrough when he reviewed successfully to dismiss captain Mominul Haque for 6.
Najmul Shanto followed him, giving a straight catch to point for 14 as Bangladesh crumbled under pressure.
Liton and Mushfiqur were duly cautious at the start and survived some tricky moments before they dominated.
They went unscathed in the whole middle session during which they raised their half-centuries and Liton hit Khan for the lone six of the day.
Liton, who was dropped from the Twenty20 squad following a poor T20 World Cup, chopped left-arm spinner Nauman Ali's short delivery past backward point to the boundary to bring up his half-century off 95 balls.
"I didn't ask anything of him (Liton) during the T20 series," batting coach Prince said.
"We worked on one or two little technical things. It was more about changing his stance, and basically his alignment to get him lined up better."
With the pitch offering nothing for the bowlers, the Pakistan pacers came up with a short balls plan which almost worked as Liton, on 67, mistimed one off Afridi but Khan put down the catch at midwicket.
Liton then became more watchful.
Mushfiqur, meanwhile, raised his 24th half-century with consecutive boundaries against fast bowler Ali off 108 balls. He survived because of a no-ball by Nauman Ali after sweeping straight to point.
Playing with caution, Liton reached his first test century off 199 balls after pushing Nauman to mid-off for a single.
Pakistan took the new ball as soon as it was available without reward for another five overs.
"At this moment, Bangladesh are in good position but our batters are in a good form and they have the ability to score better on this track," Pakistan pacer Hasan Ali said.