Bangladesh fought hard with both bat and ball despite Jonathan Trott's double century leaving England well-placed at stumps on the second day of the first Test at Lord's in London on Friday.
Bangladesh were 172 for two -- still 333 behind an England first innings 505 that featured Trott's Test-best 226 -- and needing a further 134 runs to avoid the follow-on at the close.
Junaid Siddique was 53 not out, the left-hander reaching fifty when he clipped off-spinner Graeme Swann through the legside for his eighth four. Jahurul Islam was unbeaten on 16.
Fast bowler Shahadat Hossain took five wickets for 98 runs in 28 overs, the best return by a Bangladesh bowler in a Test innings against England as the hosts struggled to get past 500, a target it seemed they'd reach easily.
Trott's maiden Test innings at Lord's spanned over eight hours and featured 349 balls with 20 fours -- but only three boundaries on Friday.
It was also Trott's second century in as many Test innings in England after his 119 on debut against Australia in the second innings at the Oval last year.
His was the best score by an England batsman at Lord's since Graham Gooch's ground record 333 against India in 1990.
Bangladesh openers Tamim Iqbal (55) and Imrul Kayes (43) counter-attacked in this first of a two-Test series after England could only manage 143 for six on Friday.
Diminutive left-hander Tamim produced a typically dashing innings of 55 off just 62 balls with six fours.
The 21-year-old hit Tim Bresnan for an offside boundary and fast bowler Steven Finn, playing his first Test in England and on his Middlesex home ground, saw his third delivery driven down the ground by Tamim.
Bangladesh at tea were 67 without loss with England's attack, badly missing rested quick Stuart Broad, struggling on a good batting pitch.
But Bangladesh, who'd already survived a couple of close calls, saw Tamim, hesitating after setting off, run out by Kevin Pietersen's direct hit from point on the bowler's end stumps.
Tamim's wasteful exit ended an opening stand off 88 in 22 overs but fellow left-hander Kayes kept the tempo up with a textbook cover-driven four off the unthreatening Bresnan.
Kayes though was cramped for room by an accurate short ball from Finn, the pick of the pace attack, which he gloved to England captain Andrew Strauss at first slip to leave Bangladesh 134 for two.
This match sprang into life after lunch with Shahadat taking three wickets for 12 runs in 21 balls including that of Trott who, playing a rare aggressive shot, was caught in the gully by Kayes.
Trott's innings saw the former South Africa junior international become only the seventh England batsman and 14th overall to make a Test double century at Lord's.
His exit left England 478 for eight and it needed a cheeky reverse sweep four from James Anderson off Bangladesh captain Shakib Al Hasan's left-arm spin to take the hosts past 500.
Anderson was last man out, bowled by a jubilant Shahadat.
England were 362 for four overnight, with Trott already 175 not out and Middlesex left-hander Eoin Morgan, on his Test debut, 40 not out.
But former Ireland batsman Morgan had added just four runs when he edged Shahadat and wicketkeeper Mushfiqur Rahim held a good diving catch.
The normally methodical Trott had some nervous moments as he neared 200 but a controlled pull for two off Rubel Hossain took the 29-year-old Warwickshire batsman to a double century.