political alliance so close that it no longer tolerated separatist tendencies of its members. The end of the dynasty of the counts of Toggenburg in 1436 also had effects on the Grisons. In their former territories in the Prättigau and Davos, the (initially eleven, after a merger only ten) villages founded the Zehngerichtebund ("League of the Ten Jurisdictions"). By 1471, the three leagues, together with the city of Chur, had formed a close federation, based on military assistance and free trade pacts between the partners and including a common federal diet: the Drei Bünde ("Three Leagues") was born, even though the alliance would be officially concluded in a written contract only in 1524. Further expansion In the second half of the 15th century, the confederation expanded its territory further. In the north, the formerly Habsburg cities of Schaffhausen and Stein am Rhein had become reichsfrei in 1415, with the ban of Frederick IV. The two strategically important cities—they offered the only two fortified bridges over the river Rhine between Constance and Basel—not only struggled with the robber barons from the neighbouring Hegau region but also were under pressure from the Habsburg dukes, who sought to re-integrate the cities into their domain. On June 1, 1454, Schaffhausen became an associate (Zugewandter Ort) of the confederacy by entering an alliance with six of the eight cantons (Uri and Unterwalden did not participate). With the help of the confederates, a Habsburg army of about 2,000 men was warded off east of Thayngen. Stein am Rhein concluded a similar alliance on December 6, 1459. The city of St. Gallen had also become free in 1415, but was in a conflict with its abbot, who tried to bring it under his influence. But as the Habsburg dukes were unable to support him in any way, he was forced to seek help from the confederates, and the abbey became a protectorate of the confederacy on August 17, 1451. The city was accepted as an associate state on June 13, 1454. Fribourg, another Habsburg city, came under the rule of the Duke of Savoy during the 1440s and had to accept the duke as its lord in 1452. Nevertheless, it also entered an alliance with Bern in 1454, becoming an associate state, too. Two other cities also sought help from the Eidgenossen against the Habsburgs: Rottweil became as associate on June 18, 1463, and Mülhausen on June