Mitchell Starc became the first bowler in nearly 40 years - and the first in Australia - to claim two hat-tricks in the same first-class match when he blasted out Western Australia's last three batsmen to claim outright points for New South Wales against Western Australia at Hurstville Oval yesterday (07).

Starc has hit ominous form ahead of the Ashes Test series against England, which commences later this month.

The left-arm pacer became only the eighth player in first-class cricket history — and the first in 40 years — to achieve the feat.

Having removed Jason Behrendorff, David Moody and Simon Mackin in WA's first innings to complete his first career hat-trick, Starc then got both Behrendorff and Moody again off the final two deliveries of his 15th over.

Jono Wells then edged Starc on the first ball of his next over to Australia and NSW captain Steve Smith at first slip to end the match.

Starc finished with the match figures of seven for 97 in NSW's 171-run victory.

He also took a career-best 8-73 for NSW against South Australia under lights at Adelaide Oval and looks in ominous touch ahead of the Test series.

Australia takes on England in the first of five Ashes Test matches in Brisbane, starting on November 23.

Australian leg-spinner Jimmy Matthews remains the only player to take two hat-tricks in a Test match after he did it against South Africa in Manchester in 1912.