Pakistan opening bowlers Mohammad Abbas and Khurram Shahzad struck three blows late on the third afternoon as South Africa set out in pursuit of 148 runs to win the first Test at SuperSport Park on Saturday.
South Africa were reeling at 27 for three at the close, 121 runs short of a victory which would clinch them a place in the World Test championship final in England next June.
Abbas took two wickets for three runs in four immaculate overs of swing bowling, dismissing Tony de Zorzi and Tristan Stubbs, while Shahzad trapped Ryan Rickelton.
Aiden Markram, South Africa's top scorer in the first innings, was unbeaten on 22 going into what could be a nervy fourth day for the hosts.
All three wickets were leg before wicket decisions - and all three were reviewed.
De Zorzi batted outside his crease in an attempt to counter the swing which undid him in the first innings - but Abbas beat his inside edge and he was given out.
He reviewed umpire Alex Wharf's decision but replays showed the impact was "umpire's call", with the ball going on to hit the stumps, and he had to go for two runs.
Rickelton failed to score before he was trapped by Shahzad and Stubbs made one before falling to Abbas - with Pakistan successfully reviewing on both occasions after the batsmen were initially given not out.
Earlier, South Africa fast bowler Marco Jansen helped put the brakes on Pakistan's attempted fightback on the rain-delayed third day of the first test at Centurion as the tourists were 212 runs for eight wickets at tea, with only a slim 122-run lead.
Jansen took three wickets in four overs to complete a five-wicket haul while Dane Paterson and Kagiso Rabada grabbed a wicket each on Saturday to hand the hosts the advantage after Pakistan had made a positive start to the day's play.
Saud Shakeel and Babar Azam both scored fifties to overturn a two-run deficit at the start of play, which was delayed until after lunch because of a passing rainstorm.
Shakeel was 66 not out at tea but left with only the tailenders as South Africa moved close to dismissing the tourists before beginning their chase for victory.
Babar scored his first fifty in his last 20 test innings in a much-needed return to form while Shakeel continued where he left off from their last test against England as Pakistan overhauled South Africa's 90-run first innings lead and looked to set their hosts a testing target.
They were 153-3, and beginning to unnerve their hosts, before a raft of injudicious shots saw them lose wickets, as well as momentum. Babar had moved briskly from 16 not out overnight to 50 but was then tempted into swinging at a short and wide delivery in Jansen's first over and caught by Corbin Bosch on the boundary.
Mohammad Rizwan then also gave away his wicket cheaply, out for three after gloving a wayward delivery down leg to be snagged by wicketkeeper Kyle Verreynne and Jansen's third wicket of the day brought up his five-for, as Salman Ali Agha drove at only the third ball he faced and edged behind.
Aamer Jamal was dismissed some 10 minutes before tea for 18 as he could not resist attempting to pull a short delivery from Paterson and was caught by Ryan Rickelton. Naseem Shah followed without scoring, after nicking Rabada to the slips. South Africa are chasing a win in the test for a place in next year's World Test Championship final although if they do not win, they have another opportunity in the second test against Pakistan, which starts at Newlands in Cape Town on Jan 3. afp
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ