 The city turned itself over to the protection of the Habsburgs, who allowed the city to retain a large measure of freedom.Most of the nobles of the city died in the battle of Sempach (1386).The patrician family Schnewlin took control of the city until the guildsmen revolted.