South Africa v Australia, 3rd Test, Cape Town, 4th day
Warner ton sets South Africa 511 for victory
Graeme Smith, having announced that he would be retiring after the Cape Town Test, led the team out with South Africa in a precarious position•Getty Images
South Africa's task was made tougher by David Warner, who began aggressively •Getty Images
Dale Steyn returned from a hamstring injury that cut his first innings short, but he was expensive and went for 24 runs from three overs•Getty Images
He fell for a brisk 145, and after quick knocks from Shane Watson and Steven Smith, Australia declared at 303 for 5, setting South Africa 511•Getty Images
Hashim Amla and AB de Villiers survived more than 30 overs, but James Pattinson had Amla caught leg before towards the end of the day, as South Africa finished at 71 for 4•Getty Images
Smith played 117 Tests in a career spanning 12 years, but with South Africa having conceded a 207-run lead, he needed a bright start to avoid going out on a defeat•Getty Images
Chris Rogers provided support at his end, striking six fours•Associated Press
Rogers was run out for 39, and Alex Doolan chipped in with 37 before being dismissed by Morne Morkel•Getty Images
Ryan Harris gave Australia an early breakthrough, trapping Alviro Petersen lbw•Getty Images
The pair added 123 for the opening wicket to take Australia's lead past 300•Getty Images
Warner eventually reached his century, becoming the first Australian in five years to score a ton in both innings •Getty Images
Graeme Smith did not last long in his final innings either, inside edging Mitchell Johnson to short leg for 3•Getty Images