Australia has won the first Test against the West Indies by 164 runs, but the hosts were made to work hard by the tourists, who batted deep into the penultimate session of the match.
After resuming on 3-192, West Indies lost skipper Kraigg Brathwaite for 110, bowled by Nathan Lyon, in the first session to put a serious dent in its hopes of saving the match.
But a brilliant stand of 82 between Roston Chase (55) and Alzarri Joseph (43) stymied the Australians' victory march.
It was part-time off spinner Travis Head who made the decisive breakthrough though, bowling Joseph for 43, his third highest Test score.
Lyon completed a six-wicket haul by claiming the poles of Chase and Kemar Roach (0) in consecutive balls to end the match and secure victory half-an-hour before tea.
Things happened quickly in the morning, with Kyle Mayers gone at the start of the eighth over as he edged Lyon to Steve Smith at slip.
But Lyon's biggest prize was still to come.
Not out overnight after notching his first century against Australia on day four, West Indies captain Kraigg Brathwaite held the key to his side's hopes of holding on for a draw.
When Lyon snuck a quicker delivery into Brathwaite's off stump, the Aussies could see the end was within sight.
West Indies added just four runs in the next 40 balls before Travis Head got in on the action, tempting Jason Holder into a rash drive to claim his first Test wicket on Australian soil, caught by Smith at slip.
Joshua da Silva did not last long, edging to Usman Khawaja at third slip off the luckless Josh Hazlewood, who threw his head back in relief after going wicketless through several impressive spells in the second innings.
Pat Cummins, who spent the afternoon session off the ground with a quad strain on day four, was supposedly available to bowl had he been required.
But the Australia captain was not required — and that appeared to be a good thing as he was clearly hobbled by his troublesome thigh when chasing down balls in the field.
More troublesome was the West Indian tail, led by Chase — who does have five Test centuries to his name — and Joseph, who made it to lunch without losing another wicket.
They hung in there for almost 20 overs and scored 82 runs together before part-timer Head got his second of the day in his return to the attack, taking the top of Joseph's off stump in the first over of his spell.
Chase made his 10th Test fifty before holing out to Mitch Starc, who took a superb catch diving forward at deep midwicket for Lyon's fifth wicket of the innings.
He then bowled Roach — batting despite carrying a hamstring injury — the very next delivery to end the match and send a relieved and tired Australia to Adelaide 1-0 up in the series.