In the second Test against South Africa at Rawalpindi Cricket Stadium on Friday, Pakistan, resuming at 145-3, were bowled out for 272 in their first innings.
Pakistan lost the second ball of the day to overnight batsman Babar Azam, without contributing to his 77, though Fawad Alam added a further three before slipping to 45.
Faheem Ashraf scored a not out genius 78.
Anrich Nortje took 5-56 for Fast Bowler while Keshav Maharaj ended 3-90.
Azam slashed from paceman Nortje at a fleeting delivery and was smartly snapped head high in the second slip by Faf du Plessis for his overnight score of 77.
Ashraf was on a gritty 54 at lunch and Yasir Shah still had to score with Pakistan adding 84 in an extended session due to prayers on Friday.
The dismissal of Azam was the start of a mini-collapse that saw Pakistan losing two wickets after resuming at 145-3 in the space of 34 balls with the addition of just four runs.
After he tried to snatch a fast single with a drive to cover, the other overnight batsman, Alam, was run out but struggled to beat a straight throw at the non-end striker’s from Temba Bavuma.
To his overnight score of 42, Alam could only add three.
Out of 127 deliveries, Azam, who was searching for his sixth test century, had struck 12 boundaries.
Ashraf then scored 41 with Mohammad Rizwan, but Nortje struck again after South Africa took the second new ball, having caught Rizwan off a miscued hook for 18.
Keshav Maharaj, the left-arm spinner, had Hasan Ali for eight. The South African bowlers chosen were Nortje (3-48) and Maharaj (3-75).
After beating the Proteas in the first Test by seven wickets in Karachi last week, Pakistan led the two-match series 1-0.