Nathan Lyon claimed a five-for as Australia thrashed Pakistan by an innings and 48 runs at to seal a 2-0 series victory in the second Test at Adelaide Oval.

Australia, who declared on 589-3 after David Warner’s historic unbeaten 335 and imposed the follow-on when Pakistan made 302 in response, closed out a second successive resounding triumph thanks to some fine bowling from Lyon on day four.

Imam-ul-Haq, Azhar Ali and Babar Azam fell in the final session on Sunday but Shan Masood (68) and Asad Shafiq (57) ensured Pakistan still put up a fight by extending their partnership to 103 runs.

However, Lyon eventually weaved his magic, finding plenty of turn and bounce on a flat track to tear through the Pakistan attack and return figures of 5-69.

Australia will hope to build on a pair of thoroughly impressive victories when they take on trans-Tasman rivals New Zealand in a three-Test series starting on December 12.

Masood was aggressive from the off and brought up his fifty when he found the ropes through mid-on – one of nine boundaries that included one maximum.

The Pakistan opener narrowly evaded Tim Paine when he nudged Josh Hazlewood (3-63) down the leg side and his partnership with Shafiq soon reached triple figures.

Masood was made to pay for a poor shot selection when he chipped Lyon to Mitchell Starc and after Shafiq brought up his fifty that was as good as it got for the tourists.

A shorter delivery from Lyon bamboozled Shafiq, who could only send it straight to Warner at leg slip, but a positive start from Mohammad Rizwan (45) helped Pakistan to 167-5 at tea.

The runs did not come as freely in the second session and Iftikhar Ahmed (27) was taken at the second attempt by first-innings centurion Marnus Labuschagne ​– who had been unable to hold onto Rizwan on four ​– off Lyon at short leg.

Pakistan lost their final four wickets for just 38 runs, with Lyon trapping Yasir Shah lbw on 13 before Shaheen Shah holed out off the prolific spinner for just one run before dinner.

Hazlewood expertly bowled Rizwan with a full delivery and Pakistan’s resistance ended when Mohammad Abbas (1) was run out by Pat Cummins.