Australia gained a confidence boost ahead of the World Twenty20 with an impressive run chase to defeat South Africa by six wickets in the third and final Twenty20 international at Newlands on Wednesday.
Needing to achieve the highest successful chase at Newlands after Hashim Amla's 97 not out inspired South Africa to 178 for four, Australia achieved victory with four balls to spare, clinching the three-match series 2-1.
Usman Khawaja (33) and Shane Watson (42) gave Australia a strong start, putting on 76 for the first wicket in 8.2 overs.
Both fell to leg-spinner Imran Tahir in the space of three balls, but captain Steve Smith and David Warner made virtually sure of victory with a third-wicket stand of 79.
Smith made 44 and Warner hit 33. Warner was run out and Smith was caught behind, but Glenn Maxwell made 19 not out off ten balls before Mitchell Marsh hit the only ball he faced for four to finish the match.
It was the last match for both teams before they leave for the World Twenty20 in India on Thursday.
Amla hit eight fours and four sixes in a 62-ball innings as South Africa posted a challenging total.
It was the highest score by a South African in a Twenty20 international against Australia and the highest individual score at Newlands.
Amla and Quinton de Kock got South Africa off to a fast start, putting on 47 for the first wicket before De Kock was caught at third man off Nathan Coulter-Nile for 25 off 13 balls.
The six-over power play yielded 68 runs but the scoring rate slowed when the fielding restrictions were lifted, with leg-spinner Adam Zampa conceding only 23 runs in a four-over spell.
Zampa should have had the wicket of Rilee Rossouw, with Maxwell putting down a straightforward catch on the midwicket boundary when the batsman had made three of his eventual 16 runs.
South Africa chose to bat first on a ground where the average total for teams batting first in floodlit games was 154.
Amla, making his first appearance in the series, replaced AB de Villiers in one of three changes in the South African team.
Left-arm spinner Aaron Phangiso was not included in the South African team despite having his bowling action cleared in an independent test, after failing a similar test ten days earlier.
Coach Russell Domingo said Phangiso needed more time to work on and gain confidence with the adjustments he had needed to make.