The famous quote, "To be, or not to be: that is the question," is from William Shakespeare's play "Hamlet." It is spoken by the titular character, Prince Hamlet, in his famous soliloquy in Act III, Scene I. In this soliloquy, Hamlet contemplates the nature of life, death, and the moral implications of existence. The quote is often interpreted as a reflection on the struggle between the desire to live and the contemplation of suicide, as Hamlet wrestles with his own existential crisis. It has become one of the most well-known and widely quoted lines in all of Shakespeare's works.