The history of Zagreb, the capital and largest city of Croatia, dates back to the Middle Ages. The Romans had built a settlement, Andautonia, in present-day Ščitarjevo. The name "Zagreb" was first used in 1094 at the founding of the Zagreb diocese in Kaptol, after the Slavs had arrived in the area. Zagreb became a free royal city in 1242. It was made the capital of Croatia in 1845 and elected its first mayor, Janko Kamauf, in 1851. According to the 2001 Croatian census, Zagreb had 779,145 inhabitants and was also Croatia's largest city in area.
"Old Zagreb" was popularized by Gjuro Szabo, an admirer of Zagreb antiquities who advocated their conservation. The city's recorded history indicates a continuity of urban settlement beginning in the 13th century. Old Zagreb consisted of two settlements on neighboring hills - Gradec (also known as Gornji Grad) and Kaptol - and the houses in the valley between them along the former Medveščak creek (present-day Tkalčićeva Street). It includes settlements at the beginning of Vlaška Street III, beneath the diocesan (later archdiocesan) seat.
The Kaptol settlement was an asymmetric rectangle, with Bakačeva Street on the south and the present-day Kaptol School on the north. Kaptol derives its name from capitulum, the Latin word for the group of Canons Regular who ruled the settlement. Kaptol Street ran north-south across the Kaptol terrace, with the canons' residences in rows along it.