From 2008 to April 2014, he served as Minister of Internal Affairs, while concurrently also serving as Prime Minister of Serbia for part of that tenure, from July 2012 until 2014 and after that he served as the Minister of Foreign Affairs from April 2014 to October 2020. He also served as Acting Prime Minister of Serbia from 31 May 2017 until 29 June 2017, after the incumbent Prime Minister, Aleksandar Vučić, was sworn in as President of Serbia. He was succeeded in office by Ana Brnabić on 29 June 2017.