Abul Hasan marked his Test debut with a 106-ball century from number 10 as Bangladesh reached 365-8 on day one against West Indies in Khulna.
The Windies looked firmly in charge when Fidel Edwards and Darren Sammy reduced Bangladesh to 98 for five midway through the afternoon session although Nasir Hossain's half-century steadied the ship.
Bangladesh then lost three more wickets in quick succession - with Edwards completing a five-wicket haul - and a collapse appeared on the cards until an unbeaten partnership of 172 for the ninth wicket between Hasan (100 not out) and Mahmudullah (72 not out) took the Tigers to a respectable 365 for eight.
Left-hander Hasan, playing just his seventh first-class match, brought up his first three-figure score in any format with a flick through the leg side off Sunil Narine two balls from stumps.
The lower order justified Bangladesh's decision to bat first after their most established batsmen failed, with Nazimuddin falling in the third over after fending a short ball from Edwards to Kieran Powell at short leg.
Tamim Iqbal and Shahriar Nafees put on a 50 partnership but the latter perished for 26 when he edged Sammy behind.
Tamim was then bowled for 32, playing no stroke at a delivery that came back into him from Sammy, while Naeem Islam got an inside edge on a full ball from Edwards onto his stumps.
The Tigers were well and truly on the ropes on 98 for five when Shakib-al-Hasan (17) feathered a catch behind off Edwards, before Hossain got off the mark with an edge through the slips for four off the same bowler.
Alongside Mushfiqur Rahim, Hossain settled into his stride and crunched Narine over long-on for six before bringing up his 50 by opening the face of his bat and tickling Veerasammy Permaul past the wicketkeeper for his eighth four.
The slow left armer would have his revenge in his next over when Hossain was caught trying to clear mid-on to depart for 52.
And Bangladesh were staring down the barrel once more when Edwards had Rahim caught behind for 32 before Sohag Gazi was trapped in front four balls later with an in-swinger to give the West Indian paceman his fifth wicket.
Mahmudullah took 15 balls to get off the mark but then cut Permaul for two fours in the same over, with Abul Hasan repeating the trick - in a rather more unorthodox manner - off Edwards.
The 20-year-old Abul Hasan slog swept Permaul for six although he was dropped in the bowler's next over on 42 at short leg.
He made full use of his reprieve by cracking Sammy straight over his head for six to bring up his 50 and continued to bat in a carefree manner, taking three fours off Marlon Samuels in an over.
He then hammered Permaul over long-on for yet another six in the same over Mahmudullah brought up his half-century.
The two continued to prosper despite the introduction of the second new ball and Hasan became just the second batsman to score a century batting from number 10 in 135 years to leave the Tigers firmly in the ascendancy going into day two.