Paragraph 103 in the German criminal code prohibits insulting foreign heads of state and other official organs of foreign governments. That law passed away with 2017 though, after the German legislature announced January 1 that the criminal statute had been removed in accordance with a vote that took place last summer.
Before the lèse-majesté law was scrapped, perpetrators could face up to three years in jail.
In 2016, Turkish President Recep Tayyip Erdogan filed a lawsuit against German satirist Jan Böhmermann, who recited a poem on late night TV calling the Turkish leader "stupid, cowardly and uptight" before joking that he watched kiddie porn and participated in bestiality.
The suit led to a rift between Berlin and Ankara and within the German government itself, but German Chancellor Angela Merkel ultimately authorized a request that the German national be prosecuted. "I consider this to be the wrong decision," Thomas Oppermann, leader of the opposition Social Democratic party, said at the time. "Prosecuting satire on the basis of a lèse-majesté law is not appropriate to the modern age," he added.
The case against the comedian was dropped the same year. In February 2017, though, a Hamburg court stated that Böhmermann was prohibited from repeating the lines in the poem offensive toward Erdogan on TV.