Openers Imam-ul Haq and Abdullah Shafique were unbeaten on 42 and 27 respectively, leaving the home team needing another 278 runs in 90 overs, with all 10 wickets intact when play resumes on Friday.
Jubilant crowds of Pakistani cricket lovers have flocked to stadiums in Rawalpindi, Karachi and Lahore throughout the series in full support of both Pakistan and Australia, undeterred by the presence of heavy security.
When umpires called off play with three overs still to be bowled, Mitchell Starc was on 19 and skipper Pat Cummins four — with Australia just 27 behind Pakistan's first innings total of 476-4 declared.
The second opening stand between Imam and Abdullah surpassed Pakistan’s previous best against Australia in 1964 when Khalid Ibadulla and Abdul Kadir combined for 249 in Karachi.
Azam also survived a confident leg-before appeal against spinner Lyon when on 157, but it turned out to be umpire Aleem Dar's call on review. Lyon was the best Australian bowler with 4-112 off a marathon 55 overs.
Gillian is back in Pakistan with a small contingent of Australian fans on their first tour of the country in nearly a quarter of a century -- and has been blown away by the welcome they have received.
His heroic innings became the second-longest knock in the fourth innings of a Test, just 36 minutes behind Michael Atherton's 185 not out that ensured England saved the 1995 Johannesburg Test against South Africa.
"It’s been tough going for the fast bowlers,” Tait said. "It’s been a real grind for both teams … we don’t know what the next test is going to bring, so I’m just working through that with the players and moving forward to the next match.”
The lanky left-armer used reverse swing to devastating effect, taking 3-29 as Pakistan were bundled out for a paltry 148 in reply to Australia's mammoth first innings of 556-9 declared.
Sajid picked up both his wickets in the most productive session for Pakistan with left-arm spinner Nauman Ali (1-91) also clean bowling Cameroon Green (28) in the last over before the break to get his first wicket.