Australia were bowled out for 391 in their first innings on the second day of the third and final Test against Pakistan in Lahore on Tuesday.
Resuming at 232-5, Australia added 159 runs with Cameron Green scoring 79 and Alex Carey 67.
For Pakistan, the pace duo of Naseem Shah (4-58) and Shaheen Shah Afridi (4-79) were the main wicket-takers.
The series is tied 0-0 after the first two Tests, in Rawalpindi and Karachi, ended in draws.
Australia opener Usman Khawaja fell agonisingly short of another Test century, as a disciplined Pakistan attack claimed three late wickets on day one to wrestle back control of the series deciding third test in Lahore.
Having won a crucial toss and electing to bat, Australia reached stumps at a wobbly 232 for 5 with Cameron Green 20 not out and Alex Carey unbeaten on 8. Khawaja, Australia's only centurion of the three-match series which remains deadlocked after two draws, top-scored with 91 and Steven Smith made 59 but Pakistan claimed the honours after a dominant final session.
Player of the Ashes Travis Head endured his third straight middling score of the series when he was caught behind on 26 off a gem of a delivery from 19-year-old Naseem Shah, who was the standout bowler of an unwavering attack. The recalled quick finished with 2 for 40 off 19 overs while left-armer Shaheen Shah Afridi was the early star with two wickets in an opening burst.
Pakistan: Abdullah Shafique, Imam Ul Haq, Azhar Ali, Babar Azam (c), Fawad Alam, Mohammad Rizwan (wk), Nauman Ali, Sajid Khan, Hasan Ali, Shaheen Afridi, Naseem Shah
Australia: David Warner, Usman Khawaja, Marnus Labuschagne, Steve Smith, Travis Head, Cameron Green, Alex Carey (wk), Pat Cummins (c), Mitchell Starc, Nathan Lyon, Mitch Swepson