Under the rule of the Visconti, the government of the city of Milan underwent profound transformations while its territorial hegemony greatly extended, to suffer a crisis after the death of Gian Galeazzo.