However, the most famous and well-known version of Hamlet is the play written by William Shakespeare, believed to have been written between 1599 and 1601. Shakespeare drew inspiration from earlier versions of the story, including a play titled "The Tragicall Historie of Hamlet, Prince of Denmarke," which was written by an anonymous author sometime before 1589.
Therefore, the story of Hamlet has been around for centuries, with its roots in Nordic folklore, and has undergone adaptations and variations throughout history, with Shakespeare's version being the most well-known today.