The Gmain area, first mentioned in a 712 deed of donation issued by Duke Theodbert of Bavaria, is an old settlement ground, a fertile plain stretching along the northern rim of the Berchtesgaden Alps. Archaeological findings date back to the Bronze Age; in the Middle Ages it became the centre of the dominions held by the Bavarian Counts of Plain, who had the Plainburg erected as their residence.