Austrian Habsburgs. It bought its freedom by paying the bishop's debt and in the following decades increased its control over the secular administration of the princebishopric, until the bishop's regent was deposed in 1452. In the upper valley of the Rhine, the Grauer Bund ("Gray League") was founded in 1395 under the direction of the abbot of Disentis and including not only the peasant communities but also the local nobles to end the permanent feuds of the latter. By 1424 the Gray League was dominated by the free communities and gave itself a more democratic charter. The third league, Zehngerichtenbund ("League of the Ten Jurisdictions"), wouldn't be formed until later. Internal crisis The relationships between the individual cantons of the confederation were not without tensions, though. A first clash between Bern and the Vier Waldstätten over the Raron conflict (Bern supported the barons of Raron, while the forest cantons sided with the Sieben Zenden) in the upper Valais was barely avoided. The local noble barons of Raron established themselves as the leading family in the upper Valais in the late 14th century and competed with the bishop of Sion for the control of the valley. When emperor Sigismund designated them counts in 1413 and ordered the bishop to hand over his territories to the von Raron, a revolt broke out in 1414. The following year, both rulers had lost: the von Raron had not succeeded in ousting the bishop, who in turn had to concede far-reaching rights to the Sieben Zenden in the treaty of Seta in 1415. The Old Zürich War, which began as a dispute over the succession to the count of Toggenburg, was a more serious test of the unity of the Acht Orte. Zürich did not accept the claims of Schwyz and Glarus, which were supported by the rest of the cantons, and in 1438 declared an embargo. The other members of the confederation expelled Zürich from the confederation in 1440 and declared war. In retaliation Zürich made a pact with the Habsburgs in 1442. The other cantons invaded the canton of Zürich and besieged the city, but were unable to capture it. By 1446, both sides were exhausted, and a preliminary peace was concluded. In 1450, the parties made a definitive peace and Zürich was admitted into the confederation again, but had to dissolve its alliance with the Habsburgs. The confederation had grown into a