Prince Hamlet receives a midnight visitation from a ghost claiming to be his murdered father. The spirit reveals that his brother Claudius poisoned him in the orchard, usurped the throne, and seduced the queen. The ghost demands vengeance, charging Hamlet to punish the incestuous villain while sparing the queen. Hamlet feigns madness to investigate the truth and bide his time, though his hesitation and philosophical musings stall his progress. He stages a play depicting a similar murder to observe Claudius's reaction, and the king's panicked flight confirms the ghost's accusations.
Meanwhile, court advisor Polonius convinces himself that Hamlet's erratic behavior stems from lovesickness for Ophelia. Hamlet accidentally kills Polonius while berating his mother, which provides Claudius with the pretext to exile the prince to England with a secret mandate for his execution. During the journey, Hamlet discovers the plot, rewrites the letters to seal the fate of his treacherous escorts instead, and manages to return to Denmark by boarding a pirate ship.
Back in Denmark, the tragedy deepens. Ophelia, driven mad by her father's violent death and Hamlet's rejection, drowns in a brook. Her brother Laertes returns from France burning for revenge. Claudius manipulates Laertes's grief, arranging a rigged fencing match where Laertes will use a poisoned blade and a poisoned cup will await Hamlet.
The final duel brings the royal court to its bloody climax. The queen drinks from the poisoned cup against the king's warnings and collapses. During the bout, both Hamlet and Laertes are wounded by the envenomed foil. Before dying, Laertes confesses the king's plot and asks for forgiveness. Hamlet uses the poisoned blade and forces the remaining drink down the throat of Claudius, achieving his delayed vengeance before dying in the arms of Horatio, just as young Fortinbras arrives to claim the throne.