granted a large part of their lands in Obwalden to their monastery at Beromünster. In 1210 the Lenzburg castle at Landenberg was abandoned. However, in the 13th century, several small castles were built for the minor nobles. The Kellner of Sarnen (Obedientiaries of the main family) lived in the Lower Castle in Sarnen. In Giswil the Lords of Hunwil lived in Hunwil Castle while the Meier of Giswil, a Ministerialis (unfree knights in the service of a feudal overlord) family, lived in Rosenberg Castle. In Lungern, the Lords of Vittringen had a castle. The political community of Sarnen (de Sarnon locorum homines) were first mentioned in a Papal bull in 1247, when they and the citizens of Schwyz were excommunicated for supporting Frederick II against their ruler, Rudolf of Habsburg-Laufenburg. In 1257, the Habsburgs had to grant their landlord rights in Obwalden to several of their vassals, all minor nobles. During the 13th century, Obwalden was home to a unified local political organization with enough autonomy to act against the best interests of their nominal rulers. The nobility in the canton were all minor nobles with limited power. This changed on 16 April 1291 when Rudolph I of Habsburg bought the Unterwalden (containing both Obwalden and Nidwalden) from Murbach Abbey. This made him the chief landowner, the count, and the emperor over the valley. Fearing a loss of their freedoms, on the 1 August 1291 Nidwalden (Obwalden is not named in the text of the document, though it is named on the seal appended to it) formed the Eternal Alliance with Uri and Schwyz. This alliance is considered the beginning of the Swiss Confederation and modern Switzerland. The Old Swiss Confederation Initially, the Eternal Alliance was a mutual defense pact between the three cantons, each of which was independently ruled. In 1304 the two valleys of Obwalden and Nidwalden were joined together under the same local deputy of the count. In 1309 Emperor Henry VII confirmed to Unterwalden all the liberties granted by his predecessor, though the exact terms are unknown. The Emperor also granted the valleys imperial immediacy which placed Unterwalden on an equal political footing with Uri and Schwyz. In 1314, Duke Louis IV of Bavaria (who would become Louis IV, Holy Roman Emperor) and Frederick the Handsome, a Habsburg prince, each claimed the crown of the Holy Roman Emperor. The Confederates supported Louis IV because they feared