(CNN) The far-right deputy mayor of Hitler's birthplace has resigned after writing a "deeply racist" poem comparing migrants to rats, which sparked fury across Austria and condemnation from Chancellor Sebastian Kurz.

Christian Schilcher, a member of the anti-immigration Freedom Party (FPÖ) that forms half of the country's ruling alliance, had published the poem in the Easter edition of his party's regional newspaper.

It used xenophobic imagery to suggest that migrants should assimilate or "quickly hurry away" from their adopted countries, and was written over a drawing of a rat wearing a long black beard and hat.

One line reads: "if you mix two cultures ... it's as if you destroy them."

"Just as we live down here, so must other rats, who as guests or migrants ... share with us the way of life, or ... quickly hurry away," the poem also says. Its title roughly translates to "The City Rat (Rodent from the Sewer)."

Read More