The inner or mountainous portion of Schwyz were controlled by the Counts of Lenzburg, until that line died out in 1173. The Lenzburg lands were inherited by the Counts of Kyburg and Frohburg, the Lords of Rapperswil and the Habsburgs. During the 10th century Einsiedeln Abbey became more and more powerful. The expanding town of Schwyz often encroached on lands that the abbey claimed. During the early 12th century, the Counts of Lenzburg (as the Count of the Zürichgau) unsuccessfully sued the abbey on behalf of Schwyz over land use and borders in the forest. Though the Counts were forced to pay a fine each time, the farmers of Schwyz continued to push into land claimed by the abbey. It soon controlled many of the surrounding lands, many of which are outside the area today covered by the canton of Schwyz. The outer or lake side parts of the canton were partly controlled by the Abbeys of St. Gallen, Pfäfers, Rüti and Schänis along with the Lords of Habsburg, Toggenburg and Rapperswil. Both Pfäffikon Castle and Alt Rapperswil Castle were built by these landlords to control their landholdings. In contrast to the Swiss Plateau where the local nobility and knights ruled extensive landholdings for the regional counts, in Schwyz there were very few local nobles and they were generally poorer and less important than the monasteries' representatives or the leaders of the local livestock collectives. Much of the farming or grazing land in the inner portion of Schwyz was not privately owned but was common land. To administer the land the local collectives developed into regional collectives that covered several towns and villages. The collectives helped create a sense of unity throughout the farming towns and villages of the valleys and developed a tradition of independence.