Anna Goeldi was executed for being a witch more than 220 years ago, the last one beheaded in Europe. On Wednesday, the Swiss cleared her name. The parliament of the Swiss canton (state) of Glarus decided unanimously to exonerate Goeldi as a victim of "judicial murder", said Josef Schwitter, a government spokesman.

Several thousand people, mainly women, were executed for witchcraft between the 14th and 18th centuries in Switzerland, and elsewhere in Europe. Yet Goeldi's trial and beheading in the village of Mollis was in 1782, when witch trials had largely disappeared from the continent.

Goeldi, a maidservant for a prominent burgher, Johann Jakob Tschudi, was convicted of "spoiling" the family's daughter, causing her to spit pins and have convulsions. Yet Tschudi, a doctor and magistrate, was said to have had an affair with Goeldi; if that had come out, his reputation would have been seriously damaged.

Download the new Independent Premium app Sharing the full story, not just the headlines

The case was brought to light through a book by a local journalist, Walter Hauser. The move to exonerate came after a long debate in the eastern Swiss region, and was taken after talks with the Protestant and Roman Catholic churches. Last year, the canton's executive branch and the Protestant church council refused even to consider exoneration, but the Glarus parliament urged the executive branch to reconsider. In June, the Glarus executive branch asked parliament to ratify the exoneration.

The Glarus government said the Protestant church council, which held the trial, had no legal authority and had decided in advance that Goeldi was guilty. She was executed even though the law at the time did not impose the death penalty for non-lethal poisoning.

A museum featuring Goeldi opened in Mollis last year on the 225th anniversary of her death.