William Shakespeare's renowned tragedy opens in the chilling night air outside the castle of Elsinore, where guards and Hamlet's friend Horatio encounter the ghostly apparition of the recently deceased King of Denmark. The spirit summons young Hamlet and reveals a horrific truth: he was murdered not by a serpent as officially claimed, but poisoned in his orchard by his own brother Claudius, who has seized the throne and married Hamlet's mother, Gertrude. Demanding revenge, the ghost charges Hamlet with bringing the usurper to justice while sparing the queen.
Following this revelation, Hamlet resolves to feign madness to mask his intentions and plot his revenge. His erratic behaviour plunges the court into confusion, particularly vexing Lord Chamberlain Polonius, who insists the prince's madness stems from lovesickness for his daughter, Ophelia. Hamlet subjects Ophelia to harsh rejection, publicly unraveling romantic ties and urging her to enter a nunnery, while privately wrestling with profound philosophical despair, epitomized by his famous soliloquy on mortality and the fear of the unknown after death.
To test the ghost's veracity, Hamlet arranges for a troupe of traveling actors to perform a play depicting a murder mirroring his father's assassination. When Claudius abruptly halts the performance and flees in guilt, Hamlet secures the proof he needs. Shortly after, during a heated confrontation with his mother in her chamber, Hamlet impulsively stabs behind the arras, accidentally killing the eavesdropping Polonius.
This fatal error triggers a cascade of tragic consequences. Claudius banishes Hamlet to England with secret orders for his execution, though pirates intercept the prince, allowing him to return to Denmark. Meanwhile, the grief of losing her father drives Ophelia to madness and eventually to a watery death. Her brother Laertes returns thirsting for vengeance, and the treacherous king manipulates him into a rigged fencing match against Hamlet.
During the fatal duel, Claudius prepares a poisoned chalice and a venom-tipped blade for Laertes. The plot unravels catastrophically when Queen Gertrude unknowingly drinks from the poisoned cup and perishes. In the ensuing scuffle, both Hamlet and Laertes are wounded by the envenom's weapon. As life slips away, a dying Hamlet finally exacts his revenge by slaying Claudius, leaving Horatio behind to tell his sorrowful story.