Durban: Australia needed just 22 balls and 20 minutes of play on the fifth day at Kingsmead to secure a 118-run triumph over South Africa in the opener of their four-match series on Monday.
The visitors required a single wicket to secure success after South Africa resumed on 293 for nine, chasing an improbable victory target of 417.
Five runs were added by the home side before Quinton de Kock was hit on the back pad and trapped leg before wicket by Josh Hazlewood (three for 61) as he tried to launch the ball over the boundary.
Mitchell Starc earlier had a chance to complete a hat-trick with the first ball of the day after being denied by bad light on Sunday but bowled down the leg side to De Kock, who was eventually out for 83 after adding two to his overnight tally.
Morne Morkel was not out on three as Starc (four for 75) finished with nine wickets in the match.
"It was a nice way to start, said victorious skipper Steve Smith afterwards. "The first Test in a series is always important and the way we played was a real plus."
Australia's win has been overshadowed by a heated off-field exchange between players at the tea interval on the fourth day, which the International Cricket Council (ICC) are investigating, as well as a charge for spinner Nathan Lyon.
CCTV footage from the players tunnel showed Australia vice-captain David Warner and home wicketkeeper De Kock involved in a fiery exchange as players climbed the stairwell to their dressing rooms during the break.
The video shows Warner being restrained by Australia batsman Usman Khawaja and spin bowler Lyon as he directs a verbal barrage at De Kock, who left the field as South Africa's not-out batsman at the same time as the Australians.
"It's rather unfortunate that the incident took place and certainly not in the spirit of the game," South Africa's team manager Mohammed Moosajee said in a statement.
"The match referee had spoken to us after the day's play. We will await any further communication from the ICC around this incident."
In a separate incident, Lyon dropped a ball on prone batsman AB de Villiers after he was run out prior to lunch on Sunday as South Africa's top order collapsed in their run chase.
Lyon faced an ICC sanction after being charged by match referee Jeff Crowe, officials said on Monday.
It sets up an intriguing rematch in the second Test, which starts on Friday at St George's Park in Port Elizabeth.
"There is no doubt South Africa will come hard at us in Port Elizabeth but hopefully our boys will be up for the fight," Smith added.
Australia 1st innings: 351
(M. Marsh 96; K. Maharaj 5/123)
South Africa 1st innings: 162
(AB de Villiers 71 n.o.; M. Starc 5/34, N. Lyon 3/50)
Australia 2nd innings: 227
(C. Bancroft 53, M. Morkel 3/47, K. Maharaj 4/102)
South Africa 2nd innings
A. Markram c T. Paine b M. Marsh 143
D. Elgar c T. Paine b M. Starc 9
H. Amla lbw J. Hazlewood 8
AB de Villiers run out 0
F. du Plessis b P. Cummins 4
T. de Bruyn c T. Paine b J. Hazlewood 36
Q. de Kock lbw J. Hazlewood 83
V. Philander c T. Paine b M. Starc 6
K. Maharaj b M. Starc 0
K. Rabada b M. Starc 0
Morne Morkel (not out) 3
Extras (b-2, lb-3, nb-1) 6
Total (all out, 92.4 overs) 298
Fall of wickets: 1-29, 2-39, 3-39, 4-49, 5-136, 6-283, 7-290, 8-290, 9-290.
Bowling: Mitchell Starc 18-2-75-4; Josh Hazlewood 15.4-2-61-3; Nathan Lyon 32-7-86-0; Pat Cummins 15-3-47-1; Mitchell Marsh 7-2-21-1; Steven Smith 5-3-3-0.