Subotica probably first became a settlement of note when people poured into it from nearby villages destroyed during the Tatar invasions of 1241–1242. It has been established that people inhabited these territories even 3000 years ago.When Zabadka / Zabatka was first recorded in 1391, it was a tiny town in the medieval Kingdom of Hungary.
In 1570, the population of Subotica numbered 49 houses, and in 1590, 63 houses.
In 1687, the region was settled by Catholic Dalmatas (called Bunjevci today).
Some months later, in the summer of 1527, Jovan Nenad was assassinated and his state collapsed.
This was the last independent Serbian state before the final Ottoman conquest of all Serb-populated lands.
Slavs settled today's Subotica in the 6th and 7th centuries, before some of them crossed the rivers Sava and Danube and settled in the Balkans.
Slavic tribe that lived in the territory of present-day Subotica were the Obotrites, who were a subgroup of the Serbs.
He named Radoslav Čelnik as the general commander of his army, while his treasurer and palatine was Subota Vrlić, a Serbian noble from Jagodina.
When Bálint Török returned and captured Subotica from the Serbs, Jovan Nenad moved his capital to Szeged.
Later, the city belonged to the Hunyadis, one of the most influential aristocratic families in the whole of Central Europe.
King Matthias Corvinus of Hungary gave the town to one of his relatives, János Pongrác Dengelegi, who, fearing an invasion by the Ottoman Empire, fortified the castle of Subotica, erecting a fortress in 1470.
Since the 1st century, the area came under control of the Sarmatian Iazyges (which possibly included Serboi tribe), who occasionally were allies and occasionally enemies of the Romans.