Answer
The 2004 election defeat marked the end of Beazley's first stint as ALP leader. He had led the party to victory in the 1998 election, but the government's popularity waned in the face of economic challenges and the unpopular decision to join the US-led invasion of Iraq. Beazley's defeat in 2004 paved the way for Mark Latham to become ALP leader.