In 1703, Emperor Leopold I placed the entire area between Una and Kupa under the military command of the Ban of Croatia, creating the Ban's Borderland (Croatian: "Banska Krajina"). In the 18th century, there were two major Austro-Turkish wars, the 1716–1718 War and the 1735–1739 War. In the first war, the Imperial Army liberated Northern Bosnia and Serbia, but in the second they lost these areas. In 1749, the Military Frontier was once again reorganized and modeled after the Imperial Army and its regular regiments, so the Ban's Borderland was divided into two regiments: Glina and Kostajnica.