Croatia first appeared as a duchy in the late 7th century and then as a kingdom in the 10th century. From the 12th century it remained a distinct state with its ruler (ban) and parliament, but it obeyed the kings and emperors of various neighboring powers, primarily Hungary and Austria.
The period from the 15th to the 17th centuries was marked by bitter struggles with the Ottoman Empire. After being incorporated in Yugoslavia for most of the 20th century, Croatia regained independence in 1991.
The area known today as Croatia was inhabited throughout the prehistoric period. Fossils of Neanderthals dating to the middle Palaeolithic period have been unearthed in northern Croatia, with the most famous and the best presented site in Krapina. Remnants of several Neolithic and Chalcolithic cultures were found in all regions of the country. The largest proportion of the sites is in the northern Croatia river valleys, and the most significant cultures whose presence was discovered include Starčevo, Vučedol and Baden cultures. The Iron Age left traces of the early Illyrian Hallstatt culture and the Celtic La Tène culture.
Much later, the region was settled by Liburnians and Illyrians, while the first Greek colonies were established on the Vis and Hvar islands.