Pakistan 17 for 2 trail South Africa 262 (Markram 90, Ashraf 3-57) by 245 runs
Johannesburg: Pakistan's bowlers changed the course of the third and final Test against South Africa when they engineered a dramatic collapse on the first day of the third and final Test on Friday.
From being in control on 226 for three at tea, South Africa were bowled out for 262 at the Wanderers Stadium.
Vernon Philander struck back for South Africa, taking two wickets off successive balls as Pakistan reached 17 for two at the close.
A cleaned innings of 90 by Aiden Markram, combined with some wayward rocking the bowling alley by Pakistan, established the framework for some assaulting batting by South Africa, who by and large hit 37 fours and a six preceding tea on what looked the best batting pitch of an arrangement effectively won by the hosts.
In any case, the pursues evaporated the interim as South Africa could include 36 for the loss of seven wickets in 19.4 overs, hitting just four additional limits.
Mohammad Amir and Mohammad Abbas set the tone after tea, taking two and one wickets separately. The two bowlers increased switch swing and taken care of their lines to make run-scoring troublesome.
Amir left the field four balls into his sixteenth over in the wake of falling in his conveyance walk and seeming to curve his left lower leg however Hasan Ali and Faheem Ashraf kept on putting weight on the batsmen.
Ashraf completed with three for 57, while Amir, Abbas and Hasan took two wickets each.
Markram hit 16 limits off 124 balls in an innings set apart by freshly struck drives and firm clasps to leg.
It was the third time in his 15-Test vocation that he had been rejected in the nineties.
Markram, who needed to breeze through a wellness test in the wake of enduring a seriously wounded right thigh while handling in the second Test in Cape Town, looked set for his fifth Test century until the point that he looked a ball from the medium-paced Faheem and wicketkeeper Sarfraz Ahmed jumped to one side to take a decent catch.
Hashim Amla (41) helped Markram put on 126 for the second wicket after remain in commander Dean Elgar was gotten behind off Mohammad Abbas for five in the second finished.
Theunis de Bruyn (49) and new top Zubayr Hamza (41) both batted brilliantly in a fourth wicket stand which was worth 72 off 92 balls at tea.
Be that as it may, De Bruyn was out in the third over after tea and Hamza, who scored 38 off 46 balls before tea, could include just three additional keeps running off 22 conveyances before he was gotten behind off Amir.
Left to arrange a precarious 40 minutes before the nearby, Pakistan lost Shan Masood, their best scorer in the arrangement, for two when a fruitful survey by South Africa demonstrated he had got a swoon edge to a ball calculated crosswise over him.
Azhar Ali got a radiant first conveyance which seamed path from him and found an edge for wicketkeeper Quinton de Kock to take a second catch.