Kumar Sangakkara became the third Sri Lankan to score a triple-century as he made 319 on day two of the second and final Test against Bangladesh in Chittagong.
He followed in the footsteps of Sanath Jayasuriya and Mahela Jayawardene while also emulating Virender Sehwag in reaching his triple with a six.
With no other batsmen bettering Jayawardene's 72, Sri Lanka were bowled out for 587 with Shakib Al Hasan returning five for 152.
Bangladesh then lost Tamim Iqbal for a four-ball duck but were mounting a spirited recovery through Shamsur Rahman (45 not out) and Imrul Kayes (36 not out) when stumps were drawn.
Sangakkara, who added 178 with Jayawardene on the opening day, faced 482 balls, hitting 32 fours and eight sixes in all.
He also passed 11,000 Test runs in the process.
Sri Lanka began the day on 314 for five and made steady progress before Kithruwan Vithanage (35) was trapped in front by Nasir Hossain.
402 for six quickly became 405 for seven when Dilruwan Perera was rapped on the pads by Shakib as he tried to defend for just one.
Sangakkara, though, was not to be denied and he found a willing ally in Ajantha Mendis, who made 47 in 67 balls.
Sri Lanka's triple-centurions
1. Mahela Jayawardene - 374 v RSA, 2006
2. Sanath Jayasuriya - 340 v IND, 1997
3. Kumar Sangakkara - 319 v BAN, 2014
The pair put on exactly 100 together for the eighth wicket, which fell when Shakib dismissed Mendis - leg before, once again - and he struck again to remove Suranga Lakmal (0) in the same manner.
Sangakkara reached his triple-century and despite not contributing more runs than four in 22 balls, Nuwan Pradeep shared a 47-run stand with the left-hander as Sri Lanka ended just 13 runs short of 600 when Sangakkara was caught at long-on by Sohag Gazi off Nasir.
Nasir finished with two for 16 with Al-Amin Hossain, Gazi and Mahmudullah all taking a wicket apiece.
Sri Lanka then struck with the new ball as Tamim Iqbal's poor run of form continued. Just four balls into the innings he was caught on the back foot as a Lakmal delivery scooted through low to bowl him.
Rahman and Kayes, who faced 75 and 76 balls respectively, had added 86 together to keep Sri Lanka at bay. Much more of the same is required from the home side if they are to remain in the game.
© Cricket World 2014