The churches were built as a consequence of the 1648 Peace of Westphalia treaties, which ended the Thirty Years’ War. The defeated Evangelicals were deprived of their religious freedom and lost almost all of their churches, so began negotiations to better their situation.