Ravana was a Rakshasa who performed penance for the God Shiva for many years, and in return received a great blessing from the God himself that he cannot be killed by any God, demon, or other divine being.