Template:Infobox Ort in Österreich Bergheim is a municipality in the district of Salzburg-Umgebung in the state of Salzburg in Austria. The Plainberg with its Maria Plain pilgrimage church forms the border between Bergheim and the city of Salzburg to the south.
The area occupied by modern-day Bergheim has been constantly inhabited since Paleolithic times (10,000 B.C.), as evidenced by archeological finds on Muntigler Hill. Other finds from the Neolithic (3rd century B.C.) point to uninterrupted inhabitation of the area from prehistoric times onward.
In the first century, B.C., the Celts began settling in the area. The Celtic kingdom of Noricum was incorporated into the Roman Empire in 16 B.C. Two Roman manors believed to date from this period have been excavated in nearby Kerath and Kemating. In the year 488 B.C. the Romans withdrew on the orders of King Odoacer.
Around the year 650 the Germanic Bavarii began to settle in the Salzburg area. One of the largest burial grounds in the Flachgau district, unearthed in 1896 near the parish church, dates from this period. The name Bergheim is believed to have originated during this period, the syllable -heim being a typical place name given by the Bavarii. The earliest documented appearance of the name dates from 927 A.D. in a title transferring ownership of the church and its goods from Archbishop Adalbert to a Deacon Reginold.
In the 12th and 13th centuries, the Lords of Bergheim held important positions in the Archbishopric of Salzburg, benefitting the municipality with fishing rights and the right to tithe and hold court. After the ruling Bergheim and Radecker families died out in the late 14th century, ownership transferred to the Archbishopric of Salzburg and the law court was moved to Radeck.
During the Napoleonic Wars (1792-1815) much of Bergheim was destroyed as the French Army crossed the Salzach River at Laufen and laid siege to Salzburg. When the Kingdom of Bavaria ceded the state of Salzburg to Austria in 1816, Bergheim became a border town and has remained on the Austrian-German border ever since.