Denmark has made it illegal to burn the Quran, Islam’s holy book, in public.
The move comes after Denmark and Sweden both saw a large number of protests this year where anti-Islam protesters burned and damaged copies of the Quran.
The burnings caused an uproar in Muslim communities, with mass protests breaking out in Muslim-majority countries such as Iraq and Yemen.
Denmark’s justice minister said that there have been more than 500 demonstrations that included burning Qurans or flags since July alone.
The government has said passing the new law was a matter of national security.
It had been concerned that the burnings would trigger terrorist attacks from Islamist extremists.
It added that the new law does not forbid criticizing religions and still allows freedom of speech.
Under the new law, which passed on Thursday Dec. 7, people who break the law could face a fine or up to 2 years in prison.