"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. The speech is recited at the end of the film Withnail and I and the text was set to music by Galt MacDermot for the rock opera Hair