The continental bits of Dalmatia were under Ottoman rule, parts of the Viyalet of Bosnia or the Klis Sanjak. The desolated areas of the Knin Frontier and Bukovica were inhabited by Orthodox Serbs from Bosnia, while the Albania veneta received constant Serb migrations from Herzegovina and Montenegro. The Serbs formed one quarter of Dalmatia's population in the 16th century. They had absolute majority in the Knin Frontier, Bukovica and the Cattaro area. The Ottomans have resettled this populace to create a living defence towards the territories of the Venetian Republic. A great portion of this population fled to Venetian land and gladly fought against the Ottomans. The number of Serbs in Venetian Dalmatia rapidly increased during the War of Crete in 1645 - 1669 and the Great Viennese War in 1683 - 1699, after which the "Peace of Karlowitz" gave the whole of Dalmatia and coastal Montenegro (from Sutorina to Cattaro) to the Venetian Republic. After the Venetian-Turkish war of 1714-1718, Venetian territorial gains were confirmed by the 1718 "Treaty of Passarowitz". The number of Dalmatian Serbs remained between "20%" and "25%" by the end of Venetian rule, while the venetian speaking population in the Dalmatian cities and islands increased with colonists from north-east Italy.