Mohammad Abbas took three quick wickets in a devastating burst to put Pakistan on course to win the first Test in Dubai, but Usman Khawaja's unbeaten half-century gave Australia hope on day four.
Abbas (3-26) struck three times without conceding a run after Pakistan declared on 181/6, Imam-ul-Haq top-scoring with 48 as the tourists were set a highly unlikely 462 to win.
Khawaja and Aaron Finch combined for a century stand in the first innings before an almighty collapse left Australia deep in the mire and there was a sense of deja vu on Wednesday.
The openers put on 87 in a positive partnership, but Abbas – who took 4/29 when Australia folded on day three – dismissed Finch (49) before removing brothers Shaun and Mitchell Marsh without scoring.
Khawaja (50 not out) and debutant Travis Head (34no) saw Australia through to 136/3 at stumps, needing a heroic final-day rearguard effort to avoid falling behind in the two-match series.
Australia were in desperate need of early wickets on the penultimate day, but Haris Sohail and Imam added 65 for the fourth wicket after Pakistan resumed on 45/3.
Sohail used his feet superbly to come down the track and hit Jon Holland (3-83) for a couple of sixes and Imam ticked along patiently to keep the lead building.
Holland got the breakthrough when Imam gave him the charge but offered a simple caught and bowled, then Marnus Labuschagne snared Haris lbw in the next over to leave Pakistan 110/5.
Asad Shafiq (41) and Babar Azam (28 not out) added 71 as the Australia bowlers toiled in the heat before the former was taken by Mitchell Marsh with a big heave off Nathan Lyon (2-58), who moved level with Brett Lee's tally of 310 Test wickets.
That prompted the declaration from Sarfraz Ahmed, who gave off spinner Mohammad Hafeez the new ball along with Abbas, but soon turn to Yasir Shah.
Yasir and Bilal Asif, who took six wickets on debut in the first innings, were unable to get the breakthrough as Khawaja and Finch played with assurance, putting away stray deliveries and displaying stoic defence.
From 72 without loss at tea, Australia soon found themselves in trouble when Abbas came struck three times in the space of seven balls, Finch trudging off after unsuccessfully reviewing an lbw decision.
Shaun Marsh was caught behind nibbling at one that nipped away, and his younger brother also fell for a duck, Abbas celebrating another lbw verdict following a review after the ball struck pad before bat.
Khawaja had a slice of luck when he flashed at a delivery from Haris and Shafiq failed to hold on to a difficult one-handed chance at a wide first slip, before the left-hander brought up a second hard-earned half-century of the match, with support from Head.
|Mourinho hails ´amazing´ Chiellini and Bonucci after Juventus outclass United|
|Simeone glad to have Costa back for Dortmund clash|
|Lopetegui to remain in charge for El Clasico - Butragueno|
|Isner saves two match points to beat Norrie, Federer grinds out victory|
|Icardi happy at Inter ahead of Barca return|
|Marcelino satisfied with point after Valencia hold on at Young Boys|
|Hoffenheim 3 Lyon 3: Joelinton rescues a point after Kramaric´s double|
|Ajax 1 Benfica 0: Last-gasp Mazraoui seals dramatic win|
|Roma 3 CSKA Moscow 0: Dzeko turns on the style|
|Kovac lauds dominant Bayern|
|Shakhtar Donetsk 0 Manchester City 3: Silva sparkle to dominant display|
|Manchester United 0 Juventus 1: Dybala downs Mourinho´s men on Ronaldo´s return|
|Real Madrid 2 Viktoria Plzen 1: Benzema and Marcelo´s goals give holders first win in six|
|Lakers´ Rondo denies spitting on Rockets´ Paul|
|Robben and Rafinha want more from Bayern|
|Federer survives Krajinovic scare to maintain Basel run|
|Green accuses NBA of double standards, calls Lakers-Rockets suspensions ´garbage´|
|New York Giants send Apple to Saints|
|Morgan aims to solve Colombo mystery after record ODI defeat|
|AEK Athens 0 Bayern Munich 2: Lewandowski helps to further ease Kovac woes|
|Young Boys 1 Valencia 1: Hoarau penalty denies Marcelino´s men|
|Mourinho walks to Old Trafford as United arrive late again for Champions League|
|Bale and Benzema back for Madrid as Lopetegui rings changes|
|Carr denies ´fractured relationship´ with Raiders team-mates|
|De Bruyne to start for Manchester City against Shakhtar Donetsk|
|France lose Le Roux and Fofana for November Tests|
|Martino to leave Atlanta United amid Mexico links|
|Pochettino cautious over Eriksen return|
|Ancelotti an inspiration for PSG boss Tuchel|
|Persepolis 1 Al Sadd 1 (2-1 agg): Iranians into first AFC Champions League final|
|Wales boss Gatland returns to New Zealand after father´s death|
|Sri Lanka hand England their heaviest ODI defeat|
|Nuggets guard Will Barton undergoes surgery|
|Surprise package Svitolina closes in on semi-final berth|
|Alexander-Arnold targets glory at home and abroad|
|Pogba relishing emotional Juventus reunion|
|Alba hopes Lopetegui keeps Real Madrid job|
|Valverde not expecting Messi magical recovery|
|Wozniacki calms fears over knee injury|
|Maybe it´s my interviews - Klopp on Liverpool´s room for improvement|
|Language no barrier to Dortmund dangermen Reus and Alcacer|
|EPCR confirms no replay of Bath-Toulouse Champions Cup fixture|
|F1 Raceweek: Five the magic number as Hamilton eyes Mexico repeat|
|RFU to introduce in-season breaks for players|
|Nainggolan misses Barcelona trip|
|Wozniacki battles through knee complaint to down Kvitova|
|Alcacer: Two seasons at Barcelona not lost|
|Henderson, Keita to miss Liverpool´s Red Star clash|
|Khabib holds talks over Mayweather Moscow fight|
|Wolf in for Titz as Hamburg try to stop slump|
|Davies released from Wales squad as Evans comes in|
|Mbappe on track to match Messi and Ronaldo, says Giuly|
|Coleman, Kipchoge and Lyles among IAAF Male World Athlete of the Year shortlist|
|Serena Williams will win slams again sooner or later, says Seles|
|You always want the best – Ter Stegen open to Neymar return|
|Xavi: My teams will never use Mourinho´s style|
|I knew what I got myself into - LeBron appreciates Lakers are a work in progress|
|Mourinho: Ronaldo loves United but he will want to score|
|Cooper completes Rebels move and takes parting shot at Reds coach Thorn|
|Bellerin amazed by ´born champion´ Ozil|
|Penguins, kangaroos and ´Stone Cold´ Steve Austin: Halloween comes early for Trail Blazers|
|Ronaldo gunning for United, Aguero targets double record - Champions League in Opta numbers|
|Ill Vardy couldn´t stomach penalty decision – Puel|
|LeBron´s Lakers lose again, Magic stun Celtics|
|Bartomeu: No Barca return for Neymar, Valverde contracted until 2020|
|Simmons and ´stimulating´ 76ers in NBA Finals mix, says Longley|
|Falcons heap further misery on Giants|
|Vidic hails Ronaldo as ultimate professional ahead of Old Trafford return|
|Warriors´ Cousins nearing NBA return|
|Pogba can´t do the basics – Souness criticises Man United star|