Pakistan middle-order batsman Haris Sohail was pleased to go on and post a big score after regularly making several promising starts before getting out earlier in the year.
Sohail's patient six-hour knock featured eight fours and two sixes, as he added 150 for the fifth wicket with Asad Shafiq.
"I was getting out on 30-40 runs on the tour of England (in May-June this year)," said Sohail.
"So I wanted to get out of that panic situation and I am happy that I have done that today."
He was finally dismissed by Nathan Lyon, caught behind as he tried to cut the off-spinner, having easily surpassed his previous best of 76 made against Sri Lanka in Abu Dhabi last year.
"It's always a big pride to score a Test hundred for your country and I have worked really hard to reach this far," said Sohail, who was sidelined for a two-year period with a knee injury in 2015."
Pakistan lost their last six wickets for 72 runs, including the run outs of Babar Azam (four) and skipper Sarfraz Ahmed for 15.