Pakistan openers Babar Azam and Shan Masood placed on a 205-run partnership to maintain the second Take a look at in opposition to South Africa alive.
The guests had been compelled to observe on at Newlands after they have been bowled out for 194 on day three.
Responding to South Africa’s first innings complete of 615, Masood (102 not out) handed three figures late within the day, whereas Azam was dismissed on 81 earlier than shut by Marco Jansen.
Pakistan started the day on 64-3, trailing South Africa by 314 runs, with the hosts nonetheless to bat for a second time.
Former Take a look at captain Azam made 58 earlier than being dismissed by Kwena Maphaka to finish his 98-run partnership with wicketkeeper Mohammad Rizwan (46).
Azam’s departure began a flurry of Pakistan wickets, with the guests shedding their remaining seven for 76 runs.
Kagiso Rabada took three wickets, with spinners Keshav Maharaj and Maphaka claiming two every.
With Pakistan trailing by a large 421 runs, South Africa enforced the observe on solely to see Rizwan and Azam report Pakistan’s highest opening-wicket partnership since December 2022.
The vacationers nonetheless face a frightening activity, needing one other 208 runs merely to attract stage with South Africa, with two days of play remaining.
The Proteas are taking part in of their remaining Take a look at match earlier than dealing with Australia within the remaining of the World Take a look at Championship at Lord’s in June.
Australia booked their place within the remaining on Sunday, winning the final Test against India in Sydney to seal a 3-1 series win.