Khan worked as a human rights solicitor until the 2005 General Election when he was elected as an MP. He became the Minister of State for Transport from June 2009 to May 2010 and when Ed Miliband became leader of the Labour Party, he was made the Shadow Justice Secretary.