 The Waldkirch district also includes the hamlet of Stahlhof, which until 1936 was an independent district together with the districts of Dettenbach, Heimeck, Petershöfe and Wegelbach, the castles of Kastelburg and Schwarzenburg as well as the abandoned ruines of the castles of Küchlinsburg (of the Küchlin family) and Kyffelburg and the abandoned town of Weiler.The earliest known mention of Waldkirch is the foundation of the Saint Margaret convent, by the Swabian duke Buchard II around the year 918.The settlement was later under the rule of the Schwarzenbergs, who built the Kastelburg and the Schwarzenburg alongside the settlement in the 13th Century, also adding a city wall.