Pakistan opener Imam-ul-Haq made his second century of the match and Abdullah Shafique scored a maiden Test hundred as the first Test against Australia was inevitably drawn.
Australia were all out for 459 in reply to Pakistan's 476-4 in the morning session on day five, Nauman Ali taking career-best figures of 6-107.
The tourists were then made to toil again on a placid pitch at Rawalpindi Cricket Stadium, where Pakistan were 252-0 when the two sides shook hands.
Imam (110 not out) had not reached three figures in a Test before he was recalled for this match, but the left-hander helped himself to one in each innings with a controlled knock.
It was also a special day for the elegant Shafique (136no), who cashed in on such batting-friendly conditions to score his first hundred in only his third Test.
Australia added only 10 runs after resuming on 449-7 with the game drifting towards a draw, Nauman striking twice and Shaheen Shah Afridi seeing the back of Mitchell Starc.
Pakistan's openers were licking their lips as they walked to the middle and duly piled on the runs, putting 76 on before taking lunch.
They continued in serene fashion in the afternoon session, moving to 191 without loss with Shafique on 99 at tea before tucking Cameron Green off his pads for a single for his hundred.
Imam would have been out caught by Marnus Labuschagne at short leg for 94 off Nathan Lyon if Pat Cummins had reviewed for a catch and he capitalised on that stroke of luck, launching Travis Head over the top for two to reach his century.
The game was brought to an end after an over from Usman Khawaja and the two sides will head to Karachi for a second Test that starts on Saturday.
Imam and Shafique forge a formidable stand
The Australia bowlers will already have seen more than enough of Imam and Shafique five days into the three-match series.
Imam crafted a brilliant 157 in the first innings and became only the 10th Pakistan player to score a hundred in both knocks, making up for lost time in a manner in which he could only have dreamed of.
Shafique will feel he had missed out when he was dismissed for 44 in the first innings, but he made the most of a flat surface on the final day, hitting 15 fours and a six. Imam cleared the rope twice and struck seven fours.
The joy of six for Nauman
Only one player has taken more wickets in a men's Test innings at Rawalpindi Cricket Stadium than Nauman Ali's haul of six, that man being Mohammad Zahid (7-66) against New Zealand in November 1996.
The left-arm spinner saw the back of Australia captain Cummins and finished Australia's innings by trapping Nathan Lyon leg before after Afridi pinned Starc in front.
Afridi claimed 2-88, with Sajid Khan and Naseem Shah having taken the other wickets.