Pakistan left-arm spinner Noman Ali took four wickets for 85 runs as South Africa reached 216-6 in the first test.
Left-handed Tony de Zorzi showed composure against the spinners on a tricky wicket.
Pakistan's spinners posed a significant challenge for South Africa's batters.
Author's summary: South Africa struggles against Pakistan spinners.