Liton Das scored his maiden Test century as the Bangladesh wicket-keeper and Mushfiqur Rahim helped rebuild after a top-order collapse in the first Test against Pakistan in Chittagong on Friday.
At stumps on day one, Bangladesh were on 253 for 4 in their first innings with Liton unbeaten on 113 and Mushfiqur not out 82.
Opting to bat first, the hosts were in trouble at 49-4 before the duo turned the tide with 204-run unbroken fifth-wicket stand.
Liton led the charge, hitting 11 fours and hoisting off-spinner Sajid Khan over long on for his only six in the innings.
He struck left-arm spinner Nauman Ali to bring up his 10th Test fifty before Mushfiqur followed suit, his 24th in Tests, with a four off Hasan Ali.
Liton, who was dropped on 67 by Sajid at short midwicket off Afridi, completed his maiden Test hundred with a tricky single off left-arm spinner Nauman Ali.
He had to dive to complete the run after pushing Ali at midoff and a direct hit could have cost him his wicket on 99.
Mushfiqur hugged Liton as he stood back to kiss his helmet and raise his bat responding to applaud from the gallery and the dressing room.
Mushfiqur also batted solidly, hitting 10 fours.
"We had a good first session by taking early wickets. We should appreciate the way Liton Das and Mushfiqur Rahim batted. They played really well," Hasan said.
"It's a slow pitch and we need to bowl in good areas to get break-through. Bangladesh is in a good position at the moment."
Pakistan's bowlers had dominated the opening session as Shaheen Afridi, Hasan Ali, Faheem Ashraf and Sajid each claimed a wicket.
Afridi set the tone for Pakistan with a gem of a delivery in the fifth over that rose sharply to glance off opener Saif Hassan's bat to Abid Ali at short leg. He made 14.
Hasan Ali then trapped the other opener, Shadman Islam, leg-before for 14.
Bangladesh skipper Mominul Haque fell soon afterwards, scoring just six as Sajid spun one sharply to take an edge that was gladly accepted by wicketkeeper Mohammad Rizwan.
The umpire initially declared Mominul not out but the decision was overruled on review.
Najmul Hossain got off the mark with a four but he too soon perished, cutting a Faheem delivery straight to Sajid at point.
Pakistan handed batsman Abdullah Shafique a Test debut and Yasir Ali was making his Test bow for Bangladesh in the two-match series.
Bangladesh vs Pakistan first Test scoreboard
Scoreboard at stumps on the first day of the first Test between Bangladesh and Pakistan at the Zahur Ahmed Chowdhury Stadium in Chittagong on Friday:
Bangladesh first innings
Shadman Islam lbw b Hasan 14
Saif Hassan c Abid b Shaheen 14
Najmul Hossain c Sajid b Faheem 14
Mominul Haque c Rizwan b Sajid 6
Mushfiqur Rahim not out 82
Liton Das not out 113
Extras (lb 8, w1, nb1) 10
Total (four wickets; 85 overs) 253
To bat: Yasir Ali, Mehidy Hasan, Taijul Islam, Abu Jayed, Ebadot Hossain
Fall of wickets: 1-19 (Saif), 2-33 (Shadman), 3-47 (Mominul), 4-49 (Najmul)
Bowling: Shaheen 18-4-50-1, Hasan 13-3-38-1, Faheem 10-2-38-1 (w1), Sajid 22-3-68-1, Nauman 22-5-51-0 (nb1)