Freedom of religion in Denmark was adopted in the new Danish Constitution of 1849.
Quote from the Danish Constitution:
"According to section 67 of the Constitution, the Danish people have the right to ‘unite in society to worship God in the manner of their belief, limited only by the consideration of morality (moral conduct especially in connection with sexuality) and public order.”.
But the protection that the Constitution provided for religious minorities did not work. The widespread harassment and persecution of religious minorities such as Jews and Catholics did not end with the new Constitution.
Around the time that the Constitution was adopted, a smaller group of Danes left the Danish national church. They established the Danish Mormon Church and became Mormons.
Jens Christian Andersen Weibye became a Mormon in 1854. He soon became a priest and leader in the church. This is an excerpt from the book Drømmen om et nyt liv (The Dream of a New Life) by Ole Sønnichsen, about Jens Christian Andersen Weibye’s experience becoming a Mormon.
Naturally, Weibye dreamt about following the Mormons to America. But first there was work to be done for the church in Denmark—though it was not always easy. In many places, missionaries were welcomed, but in some places people endured both verbal and physical assaults. At a meeting in Wenneberg, for example, they were promised beating and broken legs. The local clergyman from Skallerup shouted at them. "He slandered the Prophet Joseph Smith and spoke of miracles, etc., called us fools, parrots, Satan, devil's servants and seducers ..."
…Sometimes the Mormons had to flee out of the city in the shelter of the night. Other times they smuggled people out in the dark to perform baptism on adults, as they would otherwise attract too much attention and create turmoil.
In his diary, Weibye recounted that “in the evening, the house was surrounded by the mob, upon which I and Brother Heiselt wanted to call the police. Then the people came at us as if we were monsters. They swore and threw a stone after us.”