In the 2008 Mayor of London election he was elected as London's second Mayor. He stopped working as mayor to run as an MP for the House of Commons in 2015. In July 2016, Johnson became Secretary of State for Foreign and Commonwealth Affairs. He resigned this position in July 2018. This was the same day that David Davis resigned as Brexit Secretary. Jeremy Hunt became the Secretary of State for Foreign affairs and Commonwealth Affairs after Johnson. 