Jason Gillespie has resigned as head coach of Pakistan's Test side.
The former Australia fast bowler was appointed in April on a two-year deal.
However, the 49-year-old has stepped down with Aqib Javed being named interim red-ball head coach, the Pakistan Cricket Board (PCB) said, external.
Former South Africa opener Gary Kirsten was named white-ball coach at the same time as Gillespie's appointment and he resigned in October.
Gillespie lost his first series in charge against Bangladesh and was then removed from Pakistan's selection panel after a heavy defeat by England in the opening Test of their series.
However, Pakistan went on to clinch the series 2-1.
At the time Gillespie told Sky Sports there were "frustrations from time to time" and that "it wasn't what I signed up for, I'll be completely honest".
He then took charge of a white-ball tour to Australia in Kirsten's absence, winning a one-day series but losing the Twenty20 series.
Aqib then led the white-ball squad on a tour of Zimbabwe and the former Pakistan paceman has now been asked to lead the red-ball side with a Test series in South Africa starting this month.
Pakistan are in South Africa for a three-match Twenty20 series followed by three one-day games, before the first Test in Centurion on 26 December.