 In the 1996 election, Labor was heavily defeated by the Coalition under John Howard.Keating resigned, and Beazley was elected unopposed as Labor leader.He had the difficult task of rebuilding a party that had just suffered the second-worst defeat of a sitting government since Federation.