The Chur lead League of the House of God allied with the Grey League and the League of the Ten Jurisdictions in 1471 to form the Three Leagues. In 1489 Chur obtained the right to have a tribunal of its own, but never had the title of Free Imperial City. In 1497-98, concerned about Habsburg expansion and with the Bishop of Chur quarrelling with Austria, the Three Leagues formed an alliance with the Swiss Confederation. In 1499 the Swabian War broke out between the Three Leagues and Austria and quickly expanded to include the Confederation. During the war, troops from Chur fought under the Bishop's Vogt Heinrich Ammann in the Lower Engadin, in Prättigau and near Balzers. Troops from Chur also took part in the 1512 invasion of the Valtellina and the Second Musso War in 1530-31.