The earliest traces of human settlement come from neolithic tools discovered at Wengimoos. A few scattered Roman era artifacts were discovered at Äbeni. During the Early and High Middle Ages the wooden castle of Guldige Hubel in Übererlenacher guarded the village. During the Middle Ages, the village of Wengi and the hamlets of Scheunenberg and Waltwil were all part of the municipality of Grossaffoltern and were owned by the House of Kyburg. After the extinction of the Kyburgs, the villages passed through the hands of a number of nobles.