Grayling was born in London and studied History at Cambridge University. He wrote a number of books as well as working for the BBC and Channel 4 before going into politics. A member of the Social Democratic Party until 1988, he then joined the Conservatives. First elected to Parliament in the 2001 general election for Epsom and Ewell, he was appointed to the Shadow Cabinet of David Cameron in 2005 as Shadow Secretary of State for Transport. In 2007, he became the Shadow Secretary of State for Work and Pensions, and in 2009 he was appointed Shadow Home Secretary.