In the 13th century, the town had some 1,300 inhabitants and was surrounded by a line of walls. In the 14th century, at least six fires damaged or destroyed the monasteries of St. Luzi and St. Nicolai, St. Martin's church and twice destroyed much of the town. The Gotteshausbund (League of the House of God) was formed in 1367 in Chur to resist the rising power of the Bishopric of Chur and the House of Habsburg. Chur was the chief town of the League and one of the places the Leagues' assemblies met regularly. A burgmeister (mayor) of Chur is first mentioned in 1413, The bishop's residence was attacked by the inhabitants in 1418 and 1422, when a series of concessions were wrung out of him.