The Croatian lands contained human populations from the Upper Paleolithic period, with excavations at Krapina north of Zagreb yielding Neanderthal remains dated to approximately 130,000 years ago. By the Iron Age, the Illyrians dominated the Adriatic coast and interior regions, establishing fortified settlements called gradine throughout modern Istria and Dalmatia. The Liburnians, an Illyrian tribe, controlled the northeastern Adriatic coastline and developed significant maritime capabilities, their ships later adopted by Roman fleets. Greek colonists established trading posts along the Dalmatian coast beginning in the fourth century BCE, founding Issa on Vis Island around 397 BCE and Pharos on Hvar Island in 384 BCE. The Stari Grad Plain on Hvar preserves the geometric field divisions created by these Greek settlers, the agricultural layout remaining visible after 2,400 years. The Delmatae tribe, centered in the hinterland behind modern Split, resisted Roman expansion through multiple conflicts in the third and second centuries BCE.
The Roman Republic completed conquest of Illyrian territories through campaigns ending in 9 CE, incorporating the region into the province of Illyricum, later subdivided into Pannonia in the north and Dalmatia along the coast. Emperor Diocletian, born near Salona (modern Solin) around 244 CE, constructed his retirement palace on the Dalmatian coast between 295 and 305 CE. This palace complex, covering approximately 30,000 square meters, forms the core of modern Split, its basements, temples, and peristyle remaining substantially intact. Salona served as the provincial capital of Dalmatia, reaching a population estimated at 60,000 before Avar and Slavic raids destroyed the city in 614 CE. Roman infrastructure included roads connecting Aquileia through Istria to Salona and continuing south toward Greece, sections of these routes still visible in Istria and along the Dalmatian coast. The amphitheater at Pula, constructed between 27 BCE and 68 CE, remains the sixth-largest surviving Roman arena, measuring 132.5 meters in length with capacity for approximately 20,000 spectators.
Croats, a South Slavic people, migrated to the Dalmatian coast and Pannonian Plain during the sixth and seventh centuries CE, the Byzantine Emperor Constantine VII Porphyrogenitus recording in De Administrando Imperio (written circa 950 CE) that Emperor Heraclius invited Croats to settle Dalmatia around 620 CE to defend against Avar incursions. This account remains debated, but archaeological evidence confirms Slavic presence in the region by the early seventh century. The Croatian population gradually absorbed Romanized Illyrians along the coast while establishing agricultural communities in the interior, adopting Christianity through contact with Frankish missionaries from the north and Byzantine representatives from coastal cities. Duke Trpimir I issued a charter in 852 CE referring to himself as "by the grace of God, duke of the Croats," providing the first documentary evidence of Croatian political identity. His successor Branimir achieved papal recognition of Croatian independence from Byzantine ecclesiastical authority in 879 CE, Pope John VIII's letters to Branimir confirming autonomous status.
Tomislav united Croatian duchies around 925 CE, Byzantine Emperor Constantine VII later recording that Tomislav commanded approximately 100,000 infantry and 60,000 cavalry, figures likely inflated but indicating substantial military capacity. Croatian kings controlled territory from the Drava River south to the Neretva River Delta and inland to Bosnia through the eleventh century. King Petar Krešimir IV (reigned 1058-1074) relocated the royal seat to Šibenik and expanded Croatian territory to its maximum medieval extent. His successor Demetrius Zvonimir (reigned 1076-1089) received a crown from Pope Gregory VII in 1076, formalizing Croatia's position within the Roman Catholic sphere. Following Zvonimir's death without clear succession in 1089, Croatian nobility elected the Hungarian king Coloman as Croatian king in 1102, establishing a personal union that preserved Croatian legal and administrative autonomy under the Hungarian crown for eight centuries.
The Pacta Conventa, long believed to be a 1102 treaty defining Croatian-Hungarian relations, is now understood by historians as a later fabrication, though the relationship it purported to describe generally matched actual practice. The Croatian Sabor (assembly) maintained legislative authority over internal affairs while accepting Hungarian kings who governed through a ban (viceroy) appointed to administer Croatian territories. This arrangement allowed Croatian nobility to preserve Latin as the administrative language, maintain separate laws codified in the Vinodol Code of 1288, and control local taxation. The Republic of Venice steadily acquired Dalmatian coastal cities through purchase, treaty, and conquest between 1000 and 1420 CE, fully occupying Zadar in 1202, Dubrovnik briefly in 1205, and completing coastal dominance by 1420 except for the independent Republic of Ragusa (Dubrovnik). Venetian rule introduced Italian language and culture to coastal cities, creating a linguistic and cultural division between maritime Dalmatia and continental Croatian territories that persisted through the twentieth century.
The Ottoman Empire defeated Hungarian and Croatian forces at the Battle of Mohács in 1526, killing King Louis II and fragmentating Hungarian-Croatian territories among Ottoman, Habsburg, and Transylvanian claimants. The Croatian Sabor elected Ferdinand of Habsburg as king in 1527, establishing Habsburg rule that continued until 1918. Ottoman armies captured Slavonian territories and pushed into Croatia proper, reaching their maximum extent by 1593 when the frontier stabilized approximately 50 kilometers south of Zagreb. The Military Frontier (Vojna Krajina) system established in 1553 created a defensive zone administered directly by Habsburg military authorities, settled with refugee populations from Ottoman territories including Orthodox Serbs who received land grants in exchange for military service. This frontier stretched from the Adriatic coast near Senj through the Dinaric Alps into Slavonia, creating a multiconfessional zone distinct from civilian Croatian territories to the north.
The Ottoman-Habsburg wars of the sixteenth and seventeenth centuries devastated Croatian populations through direct combat, displacement, and economic disruption. The 1527 Croatian population estimated at 800,000 declined to approximately 400,000 by 1600, with extensive territories depopulated through warfare and Ottoman slave raids. Habsburg forces gradually recovered territory, completing Ottoman expulsion from Slavonia by 1699 through the Treaty of Karlowitz. The Military Frontier remained under direct military administration until 1881, creating lasting demographic patterns as settled populations included Catholic Croats, Orthodox Serbs, and smaller communities of Vlachs and others. The frontier population developed distinct cultural characteristics, combining military traditions with agricultural practices and maintaining stronger regional identities than populations in civilian Croatia.
The Republic of Ragusa (Dubrovnik) maintained independence through careful diplomacy and tribute payments to both Ottoman and Habsburg powers from 1358 to 1808. The republic's merchant fleet ranked among the Mediterranean's largest by the sixteenth century, trading throughout the Ottoman Empire, western Europe, and across the Atlantic to the Americas. Ragusa maintained 80 consulates by the eighteenth century and operated approximately 200 ships, accumulating wealth that funded the defensive walls completed in their present 1,940-meter circuit by the sixteenth century. The republic abolished the slave trade in 1416, among the first European states to do so, and developed sophisticated maritime insurance systems and diplomatic protocols. Napoleon's forces occupied Dubrovnik in 1806, formally abolishing the republic in 1808 and incorporating its territories into the French Illyrian Provinces until Habsburg forces retook the region in 1813.
The Illyrian Movement emerged in the 1830s among Croatian intellectuals seeking to standardize the Croatian language and promote South Slavic unity against both Habsburg Germanization policies and Hungarian nationalism. Ljudevit Gaj published the first issue of Danica in 1835, advocating for a unified South Slavic literary language based on the Shtokavian dialect rather than the Kajkavian dialect prevalent around Zagreb. This linguistic choice oriented Croatian toward Serbian rather than Slovenian, establishing the foundation for eventual Serbo-Croatian language standardization. The 1848 revolutions prompted Croatian military support for the Habsburg monarchy against Hungarian independence movements, Ban Josip Jelačić leading Croatian forces that helped suppress the Hungarian revolt. This loyalty brought limited political gains, as the Habsburg court reimposed centralized control after 1848, disappointing Croatian hopes for increased autonomy.