South Africa were firmly in control of the second Test on day three with Pakistan losing early wickets of Imam-ul-Haq and Azhar Ali at Newlands.
Both Iman and Azhar went after scoring six runs. The visitors are 37-2 in their second innings, trailing South Africa by 217 runs at lunch.
Earlier, Mohammad Amir took three wickets for 19 runs as South Africa were bowled out for 431 with a led of 254 runs in the first innings. Proteas went for quick runs after resuming at 382 for six, adding 49 runs in 8.1 overs
Amir took the first three wickets of the morning and finished with four for 88. He dismissed overnight batsmen Quinton de Kock for 59 after he added just four runs to his overnight score of 55. He next sent Vernon Philander packing for 16 followed by Kagiso Rabada for 11.
Shaheen Shah Afridi picked his fourth wicket of the match by dismissing Dale Steyn after he scored a quick 13 off 10 balls.
South Africa resumed batting on 382-6 on day three of the second Test with a lead of 205 runs and four wickets in hand after captain Faf du Plessis led from the front with a hard-earned century to give the hosts a commanding 205-run advantage at the end of the second day of the second Test.