Ian Bell cracked a superb 138 and Tim Bresnan an unbeaten 74 to lead England's recovery on the third day of the second and final Test against Bangladesh on Monday.
England were in danger of conceding a first-innings lead before posting 440-8 in their first innings at stumps in reply to Bangladesh's 419, thanks to Bell's 10th Test hundred and Bresnan's maiden half-century.
The tourists were struggling at 174-4 early in the day before being revived by Bell, who added 98 for the fifth wicket with Matt Prior (62) and 143 for the next with Bresnan.
England were just four runs short of Bangladesh's total when Bell was caught by debutant Jahurul Islam while slog-sweeping left-arm spinner Shakib Al Hasan. He smashed one six and 15 fours in his 263-ball knock.
Bresnan, batting in only his second Test innings, hit five fours in a defiant 214-ball knock.
Skipper Shakib put pressure on England after dismissing Jonathan Trott and Prior in the morning, but Bell and Bresnan applied themselves well to deny the hosts success for more than a session.
The Bangladesh captain was the most successful bowler with 4-99 off 57 disciplined overs.
Bell, who survived a leg-before appeal off left-arm spinner Abdur Razzak on 82, reached his hundred when he cut seamer Rubel Hossain for a four.
He offered a chance on 119 when he flicked seamer Shafiul Islam, but diving Imrul Kayes failed to latch it at square-leg.
Bangladesh were unlucky not to get the wickets of Prior and Bresnan early in the batsmen's innings.
Prior was on nine when he survived a confident appeal for leg-before off Rubel, although TV replays suggested the ball would have hit the leg-stump.
Bangladesh's appeal for a catch against Bresnan was also turned down but TV replays suggested the batsman inside-edged a Shakib delivery on to his pad before being caught at silly-point when on five.
Prior and Bresnan both went on to play crucial knocks and ease pressure on their team.
England suffered a setback in the morning's third over when makeshift opener Trott was bowled by Shakib at his overnight score of 64, the ball hitting the pad and elbow before rolling on to the stumps.
England lead 1-0 in the series following their 181-run victory in the opening Test in Chittagong.