Schopenhauer's main work, "The World as Will and Representation", occasionally uses the act in its examples. He denied that suicide was immoral and saw it as one's right to take one's life. In an allegory, he compared ending one's life, when subject to great suffering, to waking up from sleep when experiencing a terrible nightmare. However, most suicides were seen as an act of the will, as it takes place when one denies life's pains, and is thus different from ascetic renunciation of the will, which denies life's pleasures.