South Africa were bowled out for 220 on the opening day of the first Test against Pakistan in Karachi on Tuesday.
Spinners Yasir Shah (3-54) and debutant Nauman Ali (2-38) destroyed the tourists on a brownish pitch after South Africa won the toss and batted.
Dean Elgar top-scored with 58 while George Linde made 35.
The two-match series marks South Africa's first tour to Pakistan in 14 years.
Earlier, spinners Nauman Ali and Yasir Shah derailed South Africa with three wickets to leave the tourists on 179-6 at tea on the opening day of the first Test in Karachi on Tuesday.
Debutant left-armer Nauman dismissed South African skipper Quinton de Kock (15) and Dean Elgar (58) as South Africa fumbled from a steady 94-2 at lunch.
At tea Geroge Linde (25) and Keshav Maharaj (nought) were at the crease as South Africa -- who won the toss and batted -- were left to fight on a brownish pitch at the National Stadium, which has started to take slow spin.
Opener Dean Elgar struck his 16th Test half-century, laced with nine boundaries before he edged debutant Nauman into the hands of Babar Azam in the slip.
Elgar and Faf du Plessis (23) had steadied the innings during their 45-run stand for the third wicket after Aiden Markram (13) and Rassie van der Dussen (17) were dismissed in the first session.
Fast bowler Shaheen Shah Afridi had Markram caught in the slip, while van der Dussen was run out after attempting a quick single.
Soon after lunch, du Plessis -- dropped on 14 off Yasir -- edged the same bowler to wicketkeeper Mohammad Rizwan while de Kock played a rash shot off Nauman and was caught at mid-wicket, unable to make his 50th Test memorable.
Temba Bavuma and Linde added 43 for the sixth wicket before Bavuma was run out after he misjudged a second run and was smartly beaten by a good Hasan Ali throw from the deep.
Both Pakistan and South Africa entered the Test with two spinners and three pace bowlers.
The two-match Test series marks the first tour by South Africa to Pakistan in 14 years, a positive step for the revival of international cricket in the host country.
A deadly attack on Sri Lanka's team in 2009 froze international tours to Pakistan before their gradual reintroduction in recent years.
Scoreboard
Scorecard after South Africa's first innings on the opening day of the first Test against Pakistan played at National Stadium, Karachi, on Tuesday:
South Africa Ist innings
D. Elgar c Azam b Nauman 58
A. Markram c Butt b Shaheen 13
R. van der Dussen run out 17
F. du Plessis c Rizwan b Yasir 23
Q. de Kock c Butt b Nauman 15
T. Bavuma run out 17
G. Linde c sub (Nawaz) b Hasan 35
K. Maharaj b Yasir 0
K. Rabada not out 21
A. Nortje b Yasir 0
L. Ngidi lbw b Shaheen 8
Extras: (b5, lb1, nb7) 13
Total: (all out; 69.2 overs) 220
Fall of wickets: 1-30 (Markram), 2-63 (Dussen), 3-108 (du Plessis), 4-133 (de Kock), 5-136 (Elgar), 6-179 (Bavuma), 7-179 (Maharaj), 8-194 (Linde), 9-195 (Nortje)
Bowling: Shaheen 11.2-0-49-2 (3nb), Hasan 14-5-61-1 (2nb), Ashraf 5-0-12-0, Nauman 17-4-38-2 (1nb), Yasir 22-6-54-3 (1nb)
Toss: South Africa, elected to bat
Umpires: Aleem Dar (PAK) and Ahsan Raza (PAK)
Tv umpire: Asif Yaqoob (PAK)
Match referee: Mohammad Javed Malik (PAK)