The line "To be, or not to be, that is the question" opens Hamlet's soliloquy in Hamlet, Act 3, Scene 1.