Horatio (standing, dressed in red) with Hamlet in the 'gravedigger scene' by Eugène Delacroix
Horatio is a character from William Shakespeare's play Hamlet. A friend of Prince Hamlet from Wittenberg University, Horatio's origins are unknown, though he is evidently poor and was present on the battlefield when Hamlet's father defeated 'the ambitious Norway'. Horatio is evidently not directly involved in the intrigue at the Danish court; thus, he makes a good foil or sounding board for Hamlet. He is often not identified as any specific court position, but simply as "friend to Hamlet."
Character analysis 
Horatio is Hamlet's most trusted friend, to whom Hamlet reveals all his plans.  Horatio swears himself to secrecy about the ghost and Hamlet's pretense of madness, and conspires with Hamlet to prove Claudius's guilt in the mousetrap play. He is the first to know of Hamlet's return from England, and is with him when he learns of Ophelia's death.
At the end of the play, Horatio proposes to finish off the poisoned drink which was intended for Hamlet, saying that he is 'more an antique Roman than a Dane', but the dying prince implores Horatio not to drink from the cup and bids his friend to live and help put things right in Denmark; "If thou didst ever hold me in thy heart, / Absent thee from felicity a while, / And in this harsh world draw thy breath in pain / To tell my story." Hamlet, speaking of death as "felicity", commands Horatio to wait "a while" to tell the story; perhaps Hamlet dies expecting his friend to follow as soon as the complete story has been told. Hamlet's last request creates a parallel between the name Horatio and the Latin orator, meaning "speaker".
Horatio is present through most of the major scenes of the play, but Hamlet is usually the only person to acknowledge that he is present; when other characters address him, they are almost always telling him to leave. He is often in scenes that are usually remembered as soliloquies, such as Hamlet's famous scene with the skull of Yorick. Horatio is also present during the mousetrap play, the discovery of Ophelia's madness (though the role of an anonymous gentleman-courtier has been substituted in this scene), Hamlet's display at Ophelia's grave, and the all-important final scene. He is the only major character to survive all the way to the end of the play.
In performance, the part of Horatio is the only major part that can't be doubled (played by an actor who also plays another character) since he is present in scenes involving nearly every character.
- The Gravedigger Scene is Hamlet 5.1.1–205.
- III.ii.61-3. “Since my dear soul was mistress of her choice / And could of men distinguish, her election / Hath seal’d thee for herself…”
- Act 3 Scene 2