Galle: Rangana Herath claimed his maiden Test hat-trick as 21 wickets tumbled on a frantic second day with hosts Sri Lanka closing in on a series-clinching victory against Australia in the second Test in Galle on Friday.
The dramatic day began with Australia resuming on 54-2 before being 106 all out to concede a 175-run first innings lead.
Three Sri Lankan batsmen were also dismissed in the 11-wicket morning session but the hosts recovered to post 237 all out, setting Australia a daunting 413-run victory target to stay alive in the three-test series.
Australia's struggle against spin was obvious in the second innings as well as the tourists slumped to 25-3 at stumps.
David Warner was batting on 22 at the break, while skipper Steve Smith was on one after coming out to bat for the second time in the day with Australia staring at an embarrassing defeat inside three days.
Herath had tormented Australia in the first Test at Pallekele, exposing their vulnerability against spin bowling and claiming nine wickets in Sri Lanka's 106-run victory.
The 38-year-old left-arm spinner haunted them again on Friday, castling Smith for five runs with the first delivery of his third over.
He ripped the heart out of Australia's batting in his seventh over, getting Adam Voges caught at extra cover with his fourth delivery and trapping Peter Nevill plumb in front with an arm ball.
He struck Mitchell Starc's pad with his next delivery and home captain Angelo Mathews successfully reviewed the original not-out decision as Herath (4-35) became only the second Sri Lankan cricketer to get a Test hat-trick.
Former paceman Nuwan Zoysa was the first Sri Lankan to achieve the feat, against Zimbabwe in a 1999 match in Harare.
Off-spinner Dilruwan Perera polished off the tail to finish with 4-29 as Australia folded inside 34 overs.
Sri Lanka got off to a shaky start and, for the second time in the match, Kusal Mendis walked out to bat with his team reeling at nine for two.
The architect of Sri Lanka's Pallekele win and their top-scorer in the first innings, however, made only seven runs before Starc (6-50) sent him back.
The left-arm paceman claimed a match haul of 11 wickets but a half-century from Dilruwan Perera (64) and handy knocks from Kusal Perera (35), Mathews (47) and Dhananjaya de Silva (34) extended Sri Lanka's lead.
Sri Lanka 1st innings: 281 (K. Mendis 86, A. Mathews 54; M. Starc 5-44)
Australia 1st innings:
J. Burns c D. Perera b V. Fernando 0
D. Warner c Mathews b D. Perera 42
U. Khawaja b D. Perera 11
S. Smith b Herath 5
A. Voges c Karunaratne b Herath 8
M. Marsh c Karunaratne b Sandakan 27
P. Nevill lbw b Herath 0
M. Starc lbw b Herath 0
N. Lyon c K. Mendis b D. Perera 4
J. Hazlewood c Mathews b D. Perera 0
J. Holland not out 3
Extras: (b-5, lb-1) 6
Total (all out, 33.2 overs) 106
Fall of wickets: 1-0, 2-54, 3-59, 4-59, 5-80, 6-80, 7-80, 8-85, 9-89, 10-106
Bowling: V. Fernando 2-0-16-1, R. Herath 11-2-35-4, D. Perera 15-4-29-4, A. Mathews 3-1-13-0, D. de Silva 2-1-7-0, L. Sandakan 0.2-0-0-1
Sri Lanka 2nd innings:
K. Silva c Smith b Hazlewood 2
D. Karunaratne c M. Marsh b Starc 7
K. Perera b Lyon 35
K. Mendis c Nevill b Starc 7
A. Mathews b Lyon 47
D. Chandimal c Nevill b Starc 13
D. de Silva c Nevill b Starc 34
D. Perera b Starc 64
R. Herath b Holland 26
L. Sandakan not out 0
V. Fernando c Voges b Starc 0
Extras (lb-1, w-1) 2
Total (all out, 59.3 overs) 237
Fall of wickets: 1-5, 2-9, 3-31, 4-79, 5-98, 6-121, 7-172, 8-233, 9-237, 10-237
Bowling: M. Starc 12.3-1-50-6, J. Hazlewood 9-3-13-1 (w-1), N. Lyon 19-2-80-2, J. Holland 10-1-69-1, A. Voges 1-0-4-0, M. Marsh 4-1-7-0, S. Smith 4-0-13-0
Australia 2nd innings:
D. Warner not out 22
J. Burns c D. de Silva b Herath 2
N. Lyon c K. Silva b D. Perera 0
U. Khawaja b D. Perera 0
S. Smith not out 1
Total (for 3 wickets, 6 overs) 25
Fall of wickets: 1-3, 2-10, 3-10
To bat: A. Voges, M. Marsh, P. Nevill, M. Starc, J. Holland, J. Hazlewood
Bowling: R. Herath 3-1-16-1, D. Perera 3-0-9-2
Umpires: Chris Gaffaney & Richard Kettleborough
TV umpire: Sundaram Ravi
Match referee: Chris Broad