 Gough Whitlam's Labor Party defeated McMahon at the 1972 federal election, ending 23 consecutive years of Coalition rule.No other Australian prime minister has served for longer without winning a general election.He resigned the Liberal leadership, but remained in parliament until 1982 as a backbencher.