A Greens candidate running for a state seat in Sydney previously wrote an article calling for sex with corpses to be made legal.

Party candidate Tom Raue argued that necrophilia was harmless, but he has since backtracked saying it "is a joke", Daily Mail Australia reported.

In the article, which was written for a student newspaper in 2013, Raue wrote: "If a person gives permission for their corpse to be used for sex, and the family has no issue with it, then what's the harm? F*** it."

In the piece, he said necrophilia was one of the "most taboo sexualities in almost every society", believing it should be legalised.


He wrote that necrophilia may "not be everyone's cup of tea", but insisted the act was "harmless and should be allowed".

Raue, who has been a Greens Party member for seven years, previously wrote a similar article in 2012 campaigning to allow bestiality.

However, Raue strongly claims he was joking and that it is not his honest view.

Speaking to Daily Mail Australia, Raue said he doesn't stand by his comments as he "never really meant them" and said doesn't want necrophilia legalised.

"I have no interest in legalising necrophilia... Time wasted talking about joke articles I wrote as a student is an insult to the people of NSW."

Raue explained his current campaign will focus on solving the housing crisis, reversing all privatisation of public transport, early childhood education, taxing the rich and tackling the war on drugs.

The article has sparked outrage among NSW politicians.

A Macquarie Street MP believes the Greens should "do the right thing and disendorse him".