The president of Hungary, Pal Schmitt, resigned from his largely ceremonial post on Monday amid a storm of criticism over what he called “unfounded allegations” of plagiarism in his 1992 doctoral thesis.

His resignation followed days of political turmoil after the university in Budapest that awarded his doctoral degree stripped it from him last week.

“Based on Hungary’s constitution, which I have signed, the president expresses national unity,” Mr. Schmitt told a plenary session of the country’s Parliament in Budapest. “In this situation when my personal issue divides my beloved nation rather than unites it, I feel it is my duty to end my service and resign my mandate as president.”

His comments were followed by cheers and applause.

Semmelweis University said that Mr. Schmitt’s paper did not meet the professional and ethical criteria required for a doctoral thesis after a panel at the university found that the paper contained 16 pages of identical translation from the 1991 work of a German author, Klaus Heinemann. About a further 180 pages contained extracts identical to a 1987 work by Nikolay Gueorguiev, from Bulgaria, as well as tables and charts copied from the same source.