The first historical record about the city is from 1340. The
city was administered by the Kingdom of Hungary until the 16th
century, when it became part of the Ottoman Empire. During the
establishment of Ottoman authority, local Hungarian population left from this region.
During the Ottoman administration, the city was populated mostly by ethnic Serbs. It
was called "Sonbor" during Ottoman administration and was a
kazacentreinSanjak of