Audiobook Hamlet written by William Shakespeare. The Tragedy of Hamlet, Prince of Denmark, is a tragedy by William Shakespeare. Set in the Kingdom of Denmark, the play dramatizes the revenge Prince Hamlet is instructed to exact on his uncle Claudius. Claudius had murdered his own brother, Hamlet's father King Hamlet, and subsequently seized the throne, marrying his deceased brother's widow, Hamlet's mother Gertrude.