Rangana Herath became the oldest bowler to take a Test hat-trick as Australia were dismissed for 106 in the second Test in Galle.
The left-arm spinner, who is 38 years and 139 days old, is the second Sri Lankan to take a Test hat-trick.
Adam Voges, Peter Nevill and Mitchell Starc – after a third-umpire review – fell to Herath in the 25th over.
Herath finished with figures of 4-35 as Australia were bowled out for their lowest Test score against Sri Lanka.
Previously, the oldest man to take a hat-trick was England’s Tom Goddard, who was 38 years and 84 days old when he struck against South Africa in Johannesburg in 1938.
And Herath’s hat-trick is the first by a Sri Lanka in Tests since 1999, when Nuwan Zoysa struck against Zimbabwe with his first three deliveries of the game.
Dilruwan Perera narrowly missed out on becoming the second bowler to take a hat-trick in the second Test, after dismissing Nathan Lyon and Usman Khawaja in Australia’s second innings with the visitors chasing 413 to win