Ebersberg’s history is closely tied with the nearby Benedictine monastery founded in 934 by the Counts of Sempt. Beginning in the 14th century the monastery exercised local jurisdiction. In 1595, Pope Clement VIII dissolved the monastery and turned its lands over to the Jesuits. On January 18, 1634, during the Thirty Years War, Ebersberg was the site of a skirmish between Habsburg troops and local peasants. The peasants, being poorly armed, were quickly defeated by the Imperial forces and around 200 were killed. Later, the ringleaders were exonerated by local authorities and found they were acting only in self-defense. In 1773, the Knights of Malta took over the building. When the monastery was dissolved for good in 1808, the building went partly to government ownership and partly private.