"What a piece of work is a man!" is a phrase within a monologue by Prince Hamlet in William Shakespeare's play Hamlet. Hamlet is reflecting, at first admiringly, and then despairingly, on the human condition.