Former Australia opening batsman Justin Langer has quit his role as national team batting coach to become head coach of Western Australia.
Cricket Australia confirmed on Wednesday that another former player, Stuart Law, has been appointed Australia's interim batting coach, replacing Langer for at least the next five Tests - two more against South Africa and three against Sri Lanka.
Law played one solitary Test for Australia in 1995 against Sri Lanka in Perth and also captained Queensland to five Sheffield Shield titles, starting with a victory in 1994-95 that ended a 68-year drought.
The 44-year-old undertook coaching roles in Sri Lanka and Bangladesh before returning to Brisbane earlier this year to take the head coaching role at Cricket Australia's Centre of Excellence.
Langer, meanwhile, inherits a Western Australia squad which has lost its first three matches in the Sheffield Shield domestic first-class season. Captain Marcus North was replaced, coach Lachlan Stevens resigned and star batsman Shaun Marsh was left out of the Shield and one-day teams.
Langer, who played 118 first-class matches in 17 seasons for the state team, says he hopes to "bring cricket back to life in Western Australia."
Langer played 105 Test matches for Australia, scoring 7,696 runs at an average of 45.27 with 23 centuries and formed a prolific long-term opening partnership with Matthew Hayden.
Langer retired after the 5-0 Ashes win over England in the 2006-07 season.