Pakistan’s Batsman Asad Shafiq scored a thrilling century on the first test against Australia on the fifth day at the Gabba.
On Sunday, Pakistan closed on 382 for eight, after chasing a record 490 for victory in the day-night match.
The tourists began on 70 for two, with overnight batsmen Azhar Ali, who finished on 71, and Younis Khan, on 65, both making half-centuries before wickets from Mitchell Starc and Nathan Lyon left them 165 for four and staring down the barrel.
Mohammad Amir made 48 in a seventh-wicket stand on 92 until Jackson Bird ended his stay.
The second Test will begin on Boxing Day at the MCG in Richmond. The final Test will take place in Sydney in the New Year.