Andrew Hastie has retained his Liberal seat of Canning in a close contest with Labor candidate Amanda Hunt.
With 99 per cent of the votes counted, Mr Hastie surpassed Ms Hunt by a margin of 5872 votes.
Mr Hastie attracted 54.12 per cent of votes in the Canning electorate, compared to Ms Hunts 45.88 in the two party preferred contest.
Despite the victory, Mr Hastie suffered a 7.44 per cent swing away from the Liberals, meaning the seat is now marginal.

Labor Leader Anthony Albanese with Canning candidate Amanda Hunt. PIC: Facebook
2026-27 State Budget 'the best for Mandurah in a long time'
Woman fighting for life after two-car crash in Hopeland
E-bike rider killed in Parmelia crash
Former Department of Communities employee hit with further child sex charges
Police, RSPCA investigate alleged bashing of dog in Baldivis
Construction tender now open for new mental health facility at Rockingham General Hospital
Secret Harbour, Coodanup, Dudley Park men charged following investigation into national drug, money laundering syndicate
Men, teens charged over Dawesville kebab shop brawl
Boy in police custody after car ploughs into Baldivis business