Historic facts about the formation of the enclave within the territory of Serbia are not known, but it is believed to be tied to the period after the 1878 Congress of Berlin, when the Austro-Hungarian and Ottoman Empires were sharing the border and Austria-Hungary was allowed to annex Bosnia and Herzegovina.