Labor's Magenta Marshall will replace Mark McGowan as the new member for Rockingham.
Ms Marshall won nearly 50 per cent of the primary vote in the by-election, followed by Liberal candidate Peter Hudson with 17.7 per cent and independent Hayley Edwards coming at third with 16 per cent.
Ms Marshall called the election victory around 7.30pm on Saturday.
"I'm honoured to be elected as the new member for Rockingham! I'll always stand up for our community," Marshall said in a Facebook post.
Despite the win, Labor's primary vote fell more than 30 per cent since Mark McGowan's landslide election victory in 2021, which saw him receive 83 per cent of the primary vote.
Warnbro man charged with more child abuse, animal cruelty offences
Teen threatened, robbed by offenders on e-scooter in Mandurah
Labor candidate for Secret Harbour Georgia Tree vows to fight for locals
Safety Bay man arrested after Perth police pursuit comes to crashing end
Port Kennedy before and after school care provider fined $33k after 'distressed' boy left alone in room
Dog ball library created at Dawesville beach in memory of beloved pet
WATCH: Police investigate South Yunderup motorbike theft as sellers warned to stay vigilant
Woman, child taken to hospital after car crashes into guard rail in Greenfields
WA Police warns Telstra outage is impacting calls to triple-zero