Alex Carey fell seven runs short of a maiden Test hundred as Australia punished Pakistan on the second day of the second Test at the National Stadium in Karachi.

The tourists reached stumps on day one with a healthy score of 251-3 and inflicted further pain on their opponents by making it to 505-8 by the end of play on Sunday.

Usman Khawaja was responsible for 127 of those runs on day one and looked good value to reach a double hundred after adding another 27 runs unbeaten before lunch.

However, Islamabad-born Khawaja – who has strong family ties to Karachi – was dismissed soon after for 160 from 369 balls by Sajid Khan.

Travis Head was earlier trapped by Sajid for 23 off 48, with a review showing the ball just clipped leg stump, while Nathan Lyon was bowled by Faheem Ashraf for 38.

Australia were 360-6 after losing Khawaja, but Cameron Green (28) and Carey put on 45 before the latter was bowled by Nauman Ali.

Carey looked untroubled alongside Mitchell Starc (28 not out) as he powered towards triple figures, only to be dismissed by Babar Azam on 93 shortly before stumps.

"I guess you want to make those triple figures," Carey said at the end of play. "I think the way the game's going, it was quite an important knock in the end.

"Hopefully tomorrow we see what the skipper does but it's great to have 500 runs on the board."

Decision time for Cummins

After two full days of batting, Australia skipper Pat Cummins must decide whether to declare early on on Monday, as many would expect to be the case.

Pakistan have plenty of work to do if they are to avoid a first defeat to Australia in nine Tests at the National Stadium in Karachi.

Carey keeps Australia in command

Carey was disappointed to miss out on a century, but he still recorded his biggest Test score in what is his seventh outing, his previous highest being 51.

But Khawaja's mammoth 160 – consisting of 15 fours and one six – will be extremely tough to top, the 35-year-old having now notched 257 runs in this series.