Erlach Castle was built around 1090-1100 by Burkart von Fenis, the Bishop of Basel. In 1224, the castle and town of Erlach became the property of the Counts of Nidau. In 1265, Peter II of Savoy brought the counts and their castle under the feudal authority of the House of Savoy. While under Savoy control, Peter II appointed a warden to occupy the castle and manage the castle estates. The warden knights took their name from the castle and town and became known as the von Erlach family. The von Erlach family would later produce a number of famous leaders, including Rudolf von Erlach, the victorious Swiss commander during the Battle of Laupen. By 1300 the von Erlachs were citizens of the city of Bern. After the death of Isabella of Neuchatel, the widow of the last Count of Nidau, in 1395 Erlach was managed directly by the House of Savoy. They mortgaged the town to the de Chalon family in 1407.
In 1474 it was conquered by Bernese troops during the Burgundian Wars and remained under the control of the city of Bern. The first governor of the newly captured district was Rudolf von Erlach, who had been the castellan under the de Chalon family.
References:The Château du Haut-Koenigsbourg is situated in a strategic area on a rocky spur overlooking the Upper Rhine Plain, it was used by successive powers from the Middle Ages until the Thirty Years' War when it was abandoned. From 1900 to 1908 it was rebuilt at the behest of the German kaiser Wilhelm II. Today it is a major tourist site, attracting more than 500,000 visitors a year.
The first records of a castle built by the Hohenstaufens date back to 1147. The fortress changed its name to Koenigsburg (royal castle) around 1157. The castle was handed over to the Tiersteins by the Habsburgs following its destruction in 1462. They rebuilt and enlarged it, installing a defensive system designed to withstand artillery fire.
The fortification work accomplished over the 15th century did not suffice to keep the Swedish artillery at bay during the Thirty Years War, and the defences were overrun.