The first recorded use of the name of the city, Zagreb, was documented in the early 13th century. It was used to refer to a group of Catholic parishes when the region was under the rule of the Kingdom of Hungary. It is assumed that the word 'zagreb' was derived from the Croatian word zagrebsti (to dig) or za begrom (of the Sava River), in reference to the city's location.
Zagreb's status as a capital city began when in 1941, when the region was annexed from the Kingdom of Yugoslavia by the Axis powers in World War II. When the war ended, the kingdom became a federation following the overthrow of the monarchy, and Zagreb served as the capital of the state of Croatia. Croatia announced its independence from Yugoslavia in 1991, and Zagreb was re-established as the capital city of the newly formed country.
Zagreb is a city with county-level status, led by a mayor at the executive-level, alongside the city assembly as the legislative representative.