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 pressured to comply with on at Newlands after they had been bowled out for 194 on day three.
Responding to South Africa’s first innings whole 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 dropping their ultimate 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 comply with on solely to see Rizwan and Azam document Pakistan’s highest opening-wicket partnership since December 2022.
The vacationers nonetheless face a frightening job, 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 ultimate Take a look at match earlier than dealing with Australia within the ultimate of the World Take a look at Championship at Lord’s in June.
Australia booked their place within the ultimate on Sunday, successful the ultimate Take a look at in opposition to India in Sydney to seal a 3-1 sequence win.