To be or not to be is one of the most famous line is Hamlet.
To be simply means to live.
Not to be means to die.
Hamlet had been struggling about killing his uncle or not. He had been really confuse. First he is thinking that if he should sucide or live to have revenge to his uncle. He doesn't know if he should just kill his uncle because his dad had been murdered or he should just give up and die. The second thing is he is thinking if dying can solve any of his problems. He is now really confuse and going to be lunatic about his life. So he tought if he died he wont need to think of these annoying things. But on the other hand he is think what will happen after he died, and will these problems keep sticking with him after he died. He is wondering if dead can really solve problems or not.