Sri Lanka's spinners effected a mid-innings trauma and Bangadesh returned the favour, before Angelo Mathews' collected 74 not out overcame a collapse and sealed victory.

The hosts' bowlers made a game of the dead rubber, carving through Sri Lanka's in-form top order early in the chase, but a target of 205 had always seemed insufficient, even on a worn pitch.

Bangladesh's lack of ambition both with the bat and in the field perhaps conceded crucial moments to the opposition, who strode home by three wickets, and one over remaining to extended their unbeaten run in the country.