The history of Zagreb, the capital of Croatia, is rooted in the deep Middle Ages and begins with two separate settlements located on neighbouring hills. The first official mention of the city dates back to 1094, when the Hungarian King Ladislaus I founded a bishopric on Kaptol Hill. Nearby, on Gradec Hill, a secular settlement of craftsmen and merchants developed. For centuries, these two towns, Kaptol and Gradec, were divided not only by the Medveščak stream but also by frequent rivalry.
A key moment in the city's formation was the "Golden Bull," issued by King Béla IV in 1242. Following the devastating Mongol invasion, this decree granted Gradec the status of a free royal city. This event secured significant autonomy for Gradec, exemption from many taxes, and the right to self-government, which contributed to its rapid economic growth and strengthening. Kaptol, in turn, remained a spiritual and administrative centre under the authority of the bishop. The geographical location at the intersection of trade routes between Central Europe and the Adriatic also played an important role in the development of both settlements.
In the early period of its history, the city formed as two centres with different specialisations. Kaptol was the heart of religious life, dominated by the cathedral and inhabited by the clergy. Gradec, meanwhile, became a thriving centre of crafts and trade, protected by powerful walls. Despite centuries of animosity, the settlements gradually moved closer together, and in 1851, Ban Josip Jelačić officially united them into a single city named Zagreb. This unification laid the foundation for Zagreb's transformation into the political, economic, and cultural centre of Croatia.