Chittagong: Sri Lanka set Bangladesh a daunting target of 467 runs to record a series-levelling win in the second and final Test in Chittagong on Friday.
The host were 12 for none at stump on penultimate day.
The tourists, who led by 161 runs on the first innings, declared their second knock at 305-4 in the final session of the fourth day's play at the Zahur Ahmed Chowdhury stadium.
Kumar Sangakkara followed his 319 in the first innings with 105 in the second, joining Englishman Graham Gooch as the only batsmen to score a triple-century and century in the same Test.
Gooch made 333 and 123 against India at Lord's in 1990.
Dinesh Chandimal remained unbeaten on 100.
Sri Lanka were 68-2 in their second innings at lunch.
Earlier, Bangladesh were bowled out for 426 in their first knock within 25 minutes of the start in reply to Sri Lanka's 587.
Spinner Ajantha Mendis finished with six for 99, having claimed both the remaining wickets after Bangladesh resumed the day at 409-8.
Mendis dismissed Mahmudullah with the morning's fourth delivery, forcing a catch to short-leg before the batsman had added to his overnight score of 30.
Al-Amin Hossain was bowled by Mendis for nine, leaving last man Abdur Razzak unbeaten on 11.
Off-spinner Dilruwan Perera supported Mendis with three wickets, while seamer Suranga Lakmal took one.
The tourists are looking to sweep the short series after winning the first Test by an innings and 248 runs in Dhaka last week.
Brief scores
Sri Lanka 587 (Sangakkara 319, Jayawardene 72, Shakib 5-148) and 305/4d (Sangakkara 105, Chandimal 100*)
Bangladesh 426 (Kayes 115, Rahman 106, Shakib 50, Mendis 6-99) and 12/0
Status Bangladesh need 455 runs to win