The Tragedy of Hamlet, Prince of Denmark , often shortened to Hamlet , is a written by sometime between 1599 and 1601. It is Shakespeare`s longest play, with 29,551 words. Set in , the depicts and his attempts to exact revenge against his uncle, , who has William Shakespeare