The setting of Shakespeare's tragedy "Hamlet" is the fictional castle of Elsinore in Denmark during the Middle Ages. The first version of the play was published in 1603, followed by the second in 1604 and a third in 1623.
In each subsequent published version of the play, noticeable changes were made to lines and scenes that made each edition unique. The play tells the story of a young Danish prince named Hamlet who discovers that his recently deceased father, the King of Denmark, was murdered by Hamlet's uncle, Claudius. Hamlet's subsequent quest for vengeance drives the plot of the play. The play contains the well-known "To be or not to be" speech in which Hamlet wrestles with his decision to kill Claudius.