Davutoğlu was Minister of Foreign Affairs from 2009 to 2014. He was elected as an AKP Member of Parliament for Konya in 2011 and was re-elected as an MP in 2015. He resigned as Prime Minister on 22 May 2016.