The area that became known as the Sudetenland possessed chemical works and lignite mines as well as textile, china, and glass factories. The Bohemian border with Bavaria was inhabited primarily by Germans. The Upper Palatine Forest, which extends along the Bavarian frontier and into the agricultural areas of southern Bohemia, was an area of German settlement. Moravia contained patches of "locked" German territory to the north and south. More characteristic were the German language islands, which were towns inhabited by German minorities and surrounded by Czechs. Sudeten Germans were mostly Roman Catholics, a legacy of centuries of Austrian Habsburg rule.