In the mid 8th century AD, Duke Tassilo III of Bavaria granted the estates to the Salzburg diocese; from 987 they were held by St Peter's Abbey. The extraction of salt became crucial for the economic wealth of the Archbishopric of Salzburg, competing with the salt production of Reichenhall in Bavaria.