South Africa were all out for 364 in their first innings on day two of the second Test against New Zealand at Hagley Oval in Christchurch on Saturday.
After resuming the day at 238-3, the tourists lost their final seven wickets for the addition of 124 runs with half of them scored in a ninth-wicket stand by Marco Jansen (37*) and Keshav Maharaj (36).
Sarel Erwee top-scored for the Proteas with 108, Aiden Markram made 42 and Dean Elgar 41.
Neil Wagner took 4-102 for New Zealand while Matt Henry took 3-90.
Henry removed Temba Bavuma for 29 and Kyle Verreynne for four in the space of 10 deliveries, and Wagner claimed the wickets of Rassie van der Dussen for 25 and Wiaan Mulder for 14.