GEELONG, AUSTRALIA - FEBRUARY 19: Asela Gunaratne of Sri Lanka is congratulated by team mates after hitting the winning runs to win the second International Twenty20 match between Australia and Sri Lanka at Simonds Stadium on February 19, 2017 in Geelong, Australia. (Photo by Quinn Rooney/Getty Images)

Sri Lanka have wrapped up the T20 series against Australia thanks to an astonishing final two overs to steal victory from the jaws of defeat in Geelong last night.

Chasing 174 for victory, Andrew Tye claimed two wickets in two balls and Sri Lanka were in deep trouble at 5-40 from five overs.

The visitors were then left requiring 36 from the last 12 balls, before Asela Gunaratne stepped up to clinch a miraculous win.

Gunaratne hit 22 runs off the penultimate over off Moises Henriques, before 17 runs off Tye's final over sealed the game on the final ball of the match for the second game in a row.

Asela Gunaratne of Sri Lanka celebrates scoring the winning run during the second Twenty20 cricket match between Australia and Sri Lanka at Kardinia Park in Geelong on February 19, 2017. MAL FAIRCLOUGH/AFP/Getty Images

Gunaratne eventually finished with 84 from just 46 balls, with six fours and five sixes.

Earlier, Henriques was the bets with the bat for the Aussies, hitting an unbeaten half-century, while Ben Dunk hit 32 off 14 balls.

Tye finished with three wickets with the ball, while James Faulkner claimed two scalps.

The third and final game of the series is at Adelaide Oval on Wednesday.