Sri Lanka took the lead in the five-match series by 3-1 after winning the 4th ODI with four runs.
Australia won the toss and decided to field first and later chase the target of 259 runs set by Sri Lanka.
The hosts continued to take the wickets at regular intervals until Australia required 19 in the last over.
However, after Matthew Kuhnemann hit three fours in the over game became interesting. After this hit, his side required five in the last ball.
To help his team win, Dasun Shanaka dismissed the Australian batter securing a four-run win.
Before Australia bowled out to Sri Lanka for 258, Charith Asalanka hit his maiden one-day century rescuing Sri Lanka from top-order collapse.
Pat Cummins, Mitchell Marsh, and spinner Matthew Kuhnemann took two wickets each, slipping hosts to 34-3 after choosing to field first.
In the 2nd over of the innings, Glenn Maxwell stumped wicketkeeper-batsman Niroshan Dickwella for one.
Previous match hero Pathum Nissanka fell for a mere 13 off Marsh. And Kusal Mendis was sent back for 14 by Cummins.
Asalanka and Dhananjaya de Silva’s 101-run partnership brought their team back to a respectable total. With a mix of caution and aggression, they managed to score 110 and 60 runs.
David Warner misses his most deserved century by just one run. However, Travis Head joined him when Australia was looking for a steady partnership.
Know The Net Worth of Navjot Singh Sidhu