Matt Renshaw's career-best 190 turned the first Test against South Africa in Australia's favour as the visitors recovered from 124 for six to reach 390 all out at Kingsmead on Saturday.

Renshaw anchored Australia's innings with a patient display, including a record 134-run ninth-wicket partnership with Nathan Lyon, who contributed 27. 

The stand was the highest ninth-wicket partnership for Australia against South Africa in Test cricket and at Kingsmead.

South Africa reached 27 for one in reply before bad light stopped play early. 

Ryan Rickelton was caught at third slip by Beau Webster off Josh Hazlewood for a duck, leaving Aiden Markram unbeaten on 15 and David Bedingham on 12.

Renshaw turns the match around

Australia resumed day two on 187 for six, with Renshaw unbeaten on 46, but South Africa appeared poised to finish the innings quickly.

Wiaan Mulder removed captain Pat Cummins for 43, with Markram taking the catch at second slip, before Mitchell Starc was bowled for six. Australia had moved to 230 for eight, and the Proteas looked set to wrap up the tail.

Renshaw and Lyon had other ideas. Lyon defended resolutely while Renshaw managed the strike and continued to collect runs, frustrating the South African attack with a partnership that carried Australia well beyond 300.

Lyon eventually fell leg before wicket to Marco Jansen for 27. Renshaw's innings ended soon after tea when he edged Simon Harmer to Markram at slip, having faced 397 balls.

The 30-year-old was struck on the helmet by Anrich Nortje during the innings but recovered to continue his resistance. His previous Test century was 184 against Pakistan in Sydney during the 2016-17 season.

Renshaw had made single-figure scores in 11 of his previous 13 Test innings, making his recovery at Kingsmead all the more significant.

Rickelton falls as bad light halts Proteas

South Africa's reply got off to a poor start when Rickelton was dismissed in the second over without scoring. Hazlewood found the edge, and Webster took the catch at third slip.

Markram and Bedingham steadied the innings, but the hosts were still 363 runs behind when play was called off.

Mulder was South Africa's leading wicket-taker, finishing with four for 68, while Jansen claimed three wickets.

South Africa will resume on the third morning needing a substantial partnership to reduce the deficit and prevent Australia from tightening their grip on the match.