In 1526 Jovan Nenad, a leader of the Serb mercenaries, established his rule in Bačka, northern Banat and a small part of Syrmia. He created an ephemeral independent state, with Subotica as its capital. At the peak of his power, Jovan Nenad proclaimed himself Serbian Emperor in Subotica. Taking advantage of the extremely confused military and political situation, the Hungarian noblemen from the region joined forces against him and defeated the Serbian troops in the summer of 1527. Emperor Jovan Nenad was assassinated and his state collapsed. A few decades later, the region was added to the Ottoman Empire, which ruled over it until the end of the 17th and the first half of the 18th century, when it was incorporated into the Habsburg Monarchy. At the beginning of Habsburg rule, most of the region was integrated into the Habsburg Military Frontier district, while western parts of Bačka were put under civil administration within Bač county. Later, the civil administration was expanded to other (mostly northern) parts of the region, while southern parts remained under military administration.