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.
West Aussies urged to be on high alert after surge in winter house fires
New $3.4 million boardwalk to be constructed at Lake Clifton thrombolites
City of Mandurah rolls out new tactile bin lids, accessibility stickers to support residents with low vision
Driver dies in hospital after Australind crash
Welfare concerns for woman with dementia last seen in Cooloongup
Charges laid over fatal West Coolup crash
Final boiler comes crashing down at old Kwinana Power Station
Kwinana Police seek public's help to find wanted man
Police continue to investigate assault during Rockingham Christmas lights activation