The Kingdom of Croatia had large territorial losses in wars with the Ottoman Empire in the 16th century. Until the 18th century, the kingdom included only a small north-western part of present-day Croatia around Zagreb, and a small strip of coastland around Rijeka, that were not part of the Ottoman Empire or part of the Military Frontier. Between 1744 and 1868, the Kingdom of Croatia included a subordinate autonomous kingdom, the Kingdom of Slavonia. The territory of the Slavonian kingdom was recovered from the Ottoman Empire, and was subsequently part of the Military Frontier for a short period. In 1744, these territories were organized as the Kingdom of Slavonia and included within the Kingdom of Croatia as an autonomous part. In 1868, they were merged into the newly formed Kingdom of Croatia-Slavonia.