Rangana Herath became the first Sri Lankan spinner to bowl a hat-trick in Test cricket to put Australia in deep trouble in their match in Galle on Friday.
The left-arm bowler dismissed Adam Voges, Peter Nevill and Mitchell Starc off consecutive deliveries as the visitors struggled to match Sri Lanka's first innings score of 281 in the second Test.
Starc's dismissal left the visitors teetering at 80 for seven in the morning session of the second day's play.
Herath, 38, is only the second Sri Lankan to take a Test hat-trick after former fast bowler Nuwan Zoysa, who managed the feat with his first three balls in a match against Zimbabwe in 1999.