Marnus Labuschagne struck a "dream" maiden Test century for Australia to leave Pakistan battling to avoid an innings defeat in the first Test in Brisbane.
Queenslander Labuschagne's 185 combined with David Warner's 154 took the hosts to 580 all out in response to Pakistan's 240 at the Gabba.
Quicks Mitchell Starc (2-25) and Pat Cummins (1-16) then took over to reduce the tourists to 64 for three, still 276 runs short of forcing Australia to bat again.
Pakistan skipper Azhar Ali, Haris Sohail and Asad Shafiq were all sent packing cheaply to leave opener Shan Masood, on 27, and Babar Azam, unbeaten on 20, fighting a desperate rearguard action.
Australia have not lost at the Gabba since 1988 and the efforts of the experienced Warner and the more junior Labuschagne almost certainly ensured that record would be extended for another year.
"It's a dream come true," Labuschagne said of scoring his first test century on his home ground. "It was set up by the boys at the start and I was able to capitalise on that.
"It's a privilege to play with this hat on and ... if I can score runs along the way, that's great."
Warner, who resumed on 151 after building the foundations of the innings in a 222-run opening partnership with Joe Burns, looked exhausted by his efforts on day two and added only three runs to his tally before departing an hour into play.
Pakistan's 16-year-old pace bowler Naseem Shah celebrated his first Test wicket with the key dismissal and when Yasir Shah prised out Steve Smith for four there was a glimmer of hope for the tourists.
That hope was washed away by a torrent of runs from the bat of Labuschagne, who resumed his 16th Test innings on 55 and quickly assumed the mantle of aggressor from Warner.
He had a scare when he was given out lbw to Yasir on 93. It was reviewed immediately and the TV pictures showed a clear inside edge.
After a morning of clean-striking, the 25-year-old reached the hundred in fortuitous fashion with a thick outside edge for his 12th four.
Having put on 129 runs with Warner, Labuschagne constructed a partnership of 110 with Matthew Wade (60) and looked unmoveable as he powered the hosts to 532-5 at tea.
The effort of batting for so long in the Brisbane sun finally caught up with him, however, and a loose cut at a Shaheen Afridi delivery - the 279th he had faced - went straight to Azam at gully.
The last five Australian batsmen were dismissed at a cost of 35 runs with leg-spinner Yasir taking 4-205, including the wicket of Smith for the seventh time in six Test matches.