Bangladesh amassed their highest total and captain Mushfiqur Rahim chalked up their first Test double century on the fourth day of the opening game against Sri Lanka on Monday.
Resuming on 438 for four, Bangladesh went on to make 638 all out by tea, a first-innings lead of 68. Sri Lanka then reached the close on 116 for one with Tillakaratne Dilshan unbeaten on 63 on a lifeless pitch where bat has dominated ball from the start.
It was the second half-century of the match for Dilshan who was accompanied back to the pavilion by Kumar Sangakkara (49 not out).
The only wicket to fall was that of opener Dimuth Karunaratne for three after he top-edged a hook off Shahadat Hossain to Abul Hasan at fine leg. With one day left, the game seems destined to end in a tame draw.
Mushfiqur, on 198 at lunch, picked up two singles after the resumption and celebrated his double hundred by punching the air and kissing the turf.
The diminutive 24-year-old batsman was immediately out for 200, trapped lbw by Nuwan Kulasekera off the next delivery.
Mushfiqur's gritty 321-ball knock lasted 438 minutes and included 22 fours and a six.
After Mohammad Ashraful (190) had added one run to his overnight score, Nasir Hossain (100) joined in the run feast and became the sixth centurion in the match.
Nasir's maiden Test hundred came off 151 balls and contained nine fours.
He and Mushfiqur added 106 runs for the sixth wicket before Dilshan had Nasir caught by Sangakkara.
The total by Bangladesh, ninth and last in the Test world rankings, eclipsed the 556 they compiled against West Indies in Dhaka in November.
The second and final Test between Sri Lanka and Bangladesh in Colombo starts on Saturday.