Stans was first noted in 1172. In 1798, it was attacked by Frenchtroops, followed the decision of Nidwalden not to adapt a new constitution. Children whose parents were killed by this event were gathered by the teacher Johann Heinrich Pestalozzi for his first school. The open-air assembly (Landsgemeinde) was held in Stans each year until 1997.