Evidence of earlier settlements near Schafisheim include urn graves of the Hallstatt period and a Roman era farm. The modern village of Schafisheim is first mentioned around 1261-64 as "Scafusa". The high court right was held by the Habsburgs, and then from 1415 by Bern. A farm owned by Murbach Abbey had the "Twinggericht" (low justice and property rights) over the village, which was held until 1482. The "Twinggericht" right went to the Lords of Baldegg, then, in 1671, to a branch of the Hallwyl family. In the 15th Century the head "Twingherren" was probably living at Schafisheim Castle. After passing through several other hands, the "Twingherren" power came in 1736 to the brothers Samuel and Etienne Brutel.