As a member of the Democratic Party, Đilas served as the mayor of the Serbian capital city between 2008 and 2013. He served as the Minister without Portfolio in charge of the National Investment Plan in the 2007–2008 Cabinet of Serbia and prior to that as the director of the People's Office of the President between 2004 and 2007.