Here's the breakdown:
* The sword: Laertes, Hamlet's opponent in a fencing match, has his sword tipped with poison by Claudius. During the match, their swords are accidentally exchanged, and Hamlet is wounded by the poisoned blade.
* The drink: Claudius, fearing Laertes's plan might fail, has also poisoned a cup of wine meant for Hamlet. Hamlet drinks from the cup after being wounded.
Hamlet's death is part of a complex web of revenge and treachery orchestrated by Claudius, Hamlet's uncle, who poisoned his brother, King Hamlet, to usurp the throne.