Bangladesh will resume their innings at 135 for two on Day Three of the first Test against Sri Lanka at Galle on Saturday.
Mohammad Ashraful forged a stable 70-run partnership with Mominul Haque for the third wicket to rescue the visitors after they were reduced to 65 for two.
Bangladesh were in trouble after they lost their opener Jahurul Islam soon after Sri Lanka declared their innings at 570 for four.
Islam gloved a beautiful incoming delivery by Shaminda Eranga to the wicketkeeper with the score on 23.
Earlier Lahiru Thirimanne and Dinesh Chandimal struck their maiden Test tons to propel the hosts to 570 for four. Both were unbeaten when skipper Angelo Mathews declared the innings with a few overs left to play before Tea on Day Two.
Brief Scores: Sri Lanka 570 for 4 decl. (Lahiru Thirimanne 155, Kumar Sangakkara 142; Sohang Gazi 3 for 164) lead Bangladesh 135 for 2 (Mohammad Ashraful 65*, Mominul Haque 35*; Shaminda Eranga 1 for 25) by 435 runs