hamlet is a tragedy written by william shakespeare the play's story which can be traced back to a 12th century latin text is about a danish prince named hamlet who seeks to avenge his father's murder at the hands of his uncle claudius the play is not only shakespeare's longest but also one of his most iconic at the start of the play the king of denmark has died and his brother claudius has assumed the throne and married his late brother's wife queen gertrude consumed with grief over his father's sudden death prince hamlet is appalled by his mother's marriage to claudius whose character is he believes inferior to that of his deceased father little does hamlet know the ghost of his dead father appeared to his skeptical friend horatio and two castle centuries the previous night when horatio tells hamlet of this sighting hamlet decides to watch for the ghost himself that evening soon the ghost appears addressing only hamlet the ghost says he's come from purgatory to demand vengeance against his brother claudius who murdered him by pouring poison into his ear hamlet is shocked and vows to avenge his father's murder by killing claudius meanwhile claudius's chief advisor polonius is concerned about his daughter ophelia who loves hamlet but is confused by his gloomy mood lately at first polonius orders his daughter to stay away from hamlet but he later becomes convinced that ophelia's lack of affection is the reason for hamlet's melancholy decides to observe the couple together in secret hiding behind a tapestry with claudius but when ophelia tries to flirt with hamlet his mind is on his father's murder and he rebukes her advances proving polonius wrong next claudius recruits hamlet's school friends rosencrantz and guildenstern to discover the reason for hamlet's foul mood but hamlet quickly realizes that his friends are working against him as spies dodging his questions rosencrantz and guildenstern tell hamlet that they ran into a troop of actors on their way to the castle and invited them along to perform for the court hamlet decides to have these actors perform a play based on the murder of his father to see how claudius reacts if he seems rattled by the performance it will prove his guilt meanwhile claudius learns that fortinbras the prince of enemy norway has expressed interest in waging war on denmark owing to the recent change in the country's leadership claudius is reassured however when he learns that norway's king has forbade fortinbras from invading denmark and that the norwegian army intends to invade a small area in poland instead to do so they need claudius's permission to march through denmark which he grants that evening claudius indeed seems disturbed by the performance of hamlet's play and even storms out convincing hamlet of his guilt hamlet decides to tell his mother but on his way to her chamber hamlet overhears claudius confessing his sins including the murder to god hamlet nearly kills claudius but stopped short realizing that if he killed his uncle while he was praying claudius would go straight to heaven hamlet goes to gertrude's chamber and tries to convince his mother of claudius's evil character meanwhile polonius is once again spying on their conversation from behind a curtain at one point gertrude misinterprets hamlet's words thinking he intends to kill her she screams out for help causing polonius to scream as well assuming it's claudius behind the curtain hamlet stabs at the fabric killing polonius following polonius's death hamlet's friends rosencrantz and guildenstern escort hamlet on a diplomatic mission to england at the request of claudius however hamlet is unaware that claudius gave them a letter for the english king instructing him to have hamlet killed upon his arrival soon hamlet discovers this letter in rosencrantz and guildenstern's possession and secretly replaces it with one asking that his friends be killed instead of him meanwhile polonius's son laertes upset over his father's murder confronts claudius and threatens to seize the throne from him with the help of an angry mob claudius assures him that hamlet is responsible and together they decide to arrange for a casual jewel between hamlet and laertes who is a skilled swordsman secretly they plan to line laertes sword with poison ensuring that even a small wound will kill hamlet as an added precaution claudius will prepare a cup of poison to give to hamlet during the fight returning home from his journey hamlet passes through a cemetery encountering a gravedigger in the midst of preparing a new grave engaging in word play with the man hamlet irreverently picks up the skull of yorick a court jester he knew as a child and muses about the nature of mortality soon a funeral procession arrives and laertes informs hamlet that the newly dug grave is for ophelia who driven mad by hamlet's rejection drowned herself laertes leaps upon ophelia's grave to hold her body once more and hamlet dives in after him nearly coming to blows with laertes hamlet assures him that he loved ophelia 40 times as much as a brother could then flees the cemetery back at court hamlet learns of laertes intention to challenge him to a duel horatio worries that laertes is a better swordsman but hamlet assures him he has been practicing and agrees to the fight at first hamlet is doing so well that gertrude toast to him with a poisoned cup drinking it before claudius can stop her laertes seeing that his and claudius's plan will soon become clear slashes hamlet with the poisoned sword but as the men scuffle their swords are switched around and hamlet wounds laertes with a poisoned sword as well as they both die laertes tells hamlet of claudius's plan and hamlet stabs his uncle killing him with hamlet claudius gertrude and laertes all dead the path is cleared for fortinbras passing through on his way to poland to claim the throne