Chasing 184 for victory, Sri Lanka rode on a 54-run stand between Mendis and Shanaka before the tail helped achieve their target with four balls to spare.
Bangladesh lost wickets in clumps in the second session of Day 5 and managed to post a target of 29 for Sri Lanka to chase down at the Sher-e-Bangla National Stadium.
Bangladesh vs Sri Lanka Day 5 Live Updates: Can Bangladesh save the Test match after being pushed on the backfoot or will Sri Lanka manage to script a victory?