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".