A by-election was held in the Western Australian Legislative Assembly district of Fremantle on 16 May 2009. It was triggered by the resignation of sitting member Jim McGinty.
The Labor Party was defending a seat that they had held continuously since 1924. The by-election was held in conjunction with the state referendum on daylight saving hours.
The Greens candidate, Adele Carles, won the by-election, and in doing so became the first Greens candidate to be elected to an Australian state lower house of parliament in a single-member seat.
First elected to parliament at the 1990 Fremantle state by-election, McGinty became a minister in the Labor government of Carmen Lawrence in 1991. He held several portfolios until Labor's defeat at the 1993 state election. In Opposition, McGinty succeeded Ian Taylor as Labor leader in 1994, only to be replaced by Geoff Gallop prior to the 1996 state election. After Labor returned to power at the 2001 state election, McGinty again became a minister. Most significantly he served for seven and half years as Attorney-General in the Labor governments of Geoff Gallop and Alan Carpenter.
Following Labor's defeat at the 2008 state election, speculation among media and political commentators was that McGinty, by then almost 60 years of age, would resign his seat before the end of the term. He confirmed that speculation on 3 April 2009.