 Also at that time, from 1640, witch trials took place, the number of which increased significantly in 1663–1665.As a result, in 1669 the local court was deprived of the right to impose the death penalty on women accused of witchcraft.The city was annexed by the Kingdom of Prussia by the 1742 Treaty of Breslau which ended the First Silesian War.