Many Croats, Serbs and Vlachs immigrated from nearby parts of the Ottoman Empire (Ottoman Bosnia and Serbia) into the region and helped bolster and replenish the population as well as the garrisoned troops in the fight against the Ottomans.