The Armadale state by-election, 2010 was held on 2 October 2010 for the Western Australian Legislative Assembly seat of Armadale in the south-eastern suburbs of Perth. It was triggered by the resignation of Labor member Alannah MacTiernan on 19 July 2010 to run for the seat of Canning in the 2010 federal election.
Alannah MacTiernan was first elected to the seat of Armadale at the 1996 state election. At the February 2001 state election, where the Labor party won government, MacTiernan became Minister for Planning and Infrastructure, a portfolio which included Transport, in the new Gallop Ministry. She held this position until Labor's defeat at the August 2008 state election, and was best known for overseeing of the construction of the Mandurah railway line, which she had championed from opposition. In early 2010, she announced her plans to contest the Liberal-held federal seat of Canning, which included her state seat, and on 26 February 2010 resigned from the shadow ministry.
She officially resigned from state parliament on 19 July 2010, two days after Prime Minister Julia Gillard had announced the timetable for the 2010 federal election. Despite a 2.16% swing to Labor in Canning and particularly strong results in areas which she had previously represented, MacTiernan failed to be elected.