This meant independence and privileges for the city, the preservation of which the residents had to fight quite often over the centuries (the first uprising broke out in 1379).