Jakub Zulczyk could face up to three years in jail for his Facebook post criticising the president.
A popular Polish writer and journalist could face up to three years in prison for calling President Andrzej Duda a “moron” in a Facebook post in November.
Jakub Zulczyk accused Mr Duda of failing to understand the US electoral process in a tweet to Joe Biden.
Mr Duda’s tweet stopped short of recognising his victory, pending Electoral College confirmation, but hailed his “successful campaign”.
Poland has made it a crime to insult state leaders and religion.
Following US media reports of a presidential victory for Mr Biden on 7 November, President Duda tweeted: “Congratulations to Joe Biden for a successful presidential campaign.
“As we await the nomination by the Electoral College, Poland is determined to upkeep high-level and high-quality PL-US strategic partnership for an even stronger alliance.”
Referring to the tweet in a Facebook post, Mr Zulczyk wrote that he had studied US politics with a keen interest, and that he had “never heard of such a thing as Electoral College nomination”.
“Joe Biden is the 46th president of the USA,” he wrote, adding: “Andrzej Duda is a moron.”
Text used in the post was deemed “offensive” and “unacceptable”, prosecutors said.
Mr Zulczyk said he first learned of the charges against him through the media.
A well-known author in Poland, Mr Zulczyk’s 2014 novel Blinded by the Lights was later made into a TV series for HBO Europe.
Poland has nine different insult laws, including one that covers state symbols, and they all come with potential prison terms.
In a 2017 report by the Organization for Security and Co-operation in Europe (OSCE) looking at insult and defamation laws among 57 countries, Poland had the joint highest number.
It is possible to be imprisoned in the country for insulting not only the Polish flag, but also those of foreign countries.