Croatia proper as a region has defined itself historically through territorial losses of the medieval Kingdom of Croatia to the Republic of Venice and Ottoman conquest starting in the 15th century. Modern history recorded the first Ottoman raids in the area in the late 15th century after fall of the Medieval Kingdom of Bosnia—culminating in the Battle of Krbava Field in 1493. The region now known as Croatia proper only became so in 1522, when the capital of Croatia was moved from Dalmatia to Bihać. In response, Croatian Military Frontier was established under direct Habsburg imperial rule. By 1528, nearly all of Lika was under Ottoman control. Venice seized the area of present-day Dalmatia as the Ottomans advanced, winning the decisive Battle of Krbava Field in 1493 and the Battle of Mohács in 1526. This led to the loss of Slavonia and the defeat of the Kingdom of Hungary, to which Croatia was tied through a personal union. The extent of the Ottoman conquest still marks the southern and eastern boundaries of Croatia proper as a geographical region. In effect, Croatia proper loosely corresponds to what was termed the relics of the relics of the formerly great and glorious Kingdom of Croatia () and subsequent Kingdom of Croatia within the Habsburg Empire. The Croatian Military Frontier was gradually established in the second half of the 16th century, removing further territory from the Kingdom of Croatia and placing the military zone under direct imperial rule. Ottoman advances into Croatian territory continued until the 1593 Battle of Sisak, the first decisive Ottoman defeat, which led to a more lasting stabilisation of the frontier. As the Ottoman control of the area waned, the Military Frontier expanded to include the entirety of Lika. In 1881, that region was incorporated into the Kingdom of Croatia-Slavonia, together with Gorski Kotar, which remained a part of the Kingdom of Croatia throughout the Croatian–Ottoman Wars.