John Howard was a lawyer before he became a politician. He was in parliament from 1974 until 2007. From 1977 to 1983 he was the Treasurer in Malcolm Fraser's government. Malcolm Fraser lost the 1987 election to Bob Hawke. On 24 November 2007, John Howard lost to Kevin Rudd and his parliamentary seat to Maxine McKew. He became the second prime minister to lose a parliamentary seat after Stanley Bruce in 1929.