Beazley was a minister under Bob Hawke from 1983 to 1991 and under Paul Keating from 1991 to 1996. He was Deputy Prime Minister in 1995-1996. Elected Labor Leader in March 1996, he resigned in November 2001 after losing two federal elections. Beazley took up the reigns of ALP leadership in early 2005 following the acrimonious resignation of Mark Latham. Beazley was defeated in a party room vote by Kevin Rudd in December 2006.