Bangladesh's Shahriar Nafees (97) and Shakib Al Hasan (108 not out) put on a record fifth-wicket stand for their country against Pakistan on day one of the second Test in Dhaka.
The pair added 180 after Aizaz Cheema had given Pakistan the upper hand during the first session.
Following a delayed start, due to fog, Cheema picked up three wickets to reduce the hosts to 43-4.
Cheema and opening partner Umar Gul took full advantage of the new ball with three wickets in the first eight overs of the Bangladesh innings.
Nazimuddin (0) fell at the end of Cheema's first over when the quick bowler swung a delivery back into the right-hander, who was trapped lbw not offering a shot.
Fellow opener Tamim Iqbal (14) played in a typically aggressive manner that would ultimately prove his undoing. The left-hander struck successive boundaries off Gul before he pulled the same bowler to long-leg.
Mahmudullah was cleaned up by Cheema first ball to a delivery that shot through low as Bangladesh slid to 21-3.
Nafees looked solid but he lost his fourth-wicket partner, Nasir Hossain (7), after they added 22 runs, when the youngster got a thin edge to a ball that left him off the pitch.
Bangladesh found themselves in a parlous position at lunch on 49-4 but Nafees and Shakib batted all the way through the middle session as they advanced their partnership by 103 runs.
Shakib got the partnership flowing with three fours in four balls off Cheema as batting conditions eased.
Nafees brought up his 50 off 85 balls (7 x 4) before he was followed soon after by Shakib (off 87 balls, 9 x 4).
Pakistan endured their most frustrating session of a two-Test series that has otherwise gone entirely according to plan.
After the resumption, Shakib hit two fours in a Gul over to get to 99 and then steered to point for a single to reach his ton.
The former skipper recorded his second Test century off 159 balls (14 x 4).
Nafees was then out three short of his century when he gloved a lifting Gul delivery to wicketkeeper Adnan Akmal.
The left-hander narrowly missed out on what would have been a deserved second Test century on a day that ended much better than it had started for the home team.
Bangladesh captain Mushfiqur Rahim (5 not out) helped Shakib get to the close without further loss before bad light finished the day early.