Petrović was elected as mayor of Loznica via a direct vote in the 2004 municipal elections and was returned to the position via indirect election (i.e., by a vote of the city assembly) in 2008, 2012 and 2016.