Earlier, Pakistan skipper Sarfraz Ahmed won the toss and decided to bat. Hafeez smashed 126, his 10th Test hundred, during a 278-minute stay at the crease and put on 205 runs for the opening stand with Imam-ul-Haq, who made a career-best 76.
Lyon, Holland and Siddle finished a challenging opening day with a wicket apiece.