Necrophilia

pathological attraction to dead bodies, especially sexual attraction or intercourse

Necrophilia is a paraphilia of being sexually attracted to dead bodies. Some necrophiliacs have sex with dead bodies. It is usually considered morally wrong. In addition sexual contact with dead bodies carries the risk of disease if the body has started to decay. It is illegal in many parts of the world, but not all.

Der Hass (The Hate)— a painting by Pietro Pajetta showing a man molesting a dead woman