In Shakespeare's Hamlet, the main character in the play is brought into a state of melancholy and depression over his father's death and his mother's incestuous marriage with his father's brother. This causes Hamlet to seek counsel in his friendship with Horatio because of his loyalty and good qualities. Other characters in the play are willing to sacrifice their friendship with Hamlet to gain the favour of the new king, Claudius.
When Hamlet chases after the ghost of his father, Horatio illustrates the strength of his friendship with Hamlet when he is concerned about his wellbeing. Horatio does not wish that Hamlet's interest in the ghost will cause him any harm by the supernatural. It is evident that the friendship between the two characters is well established. In addition, Horatio's resolute swearing of silence about the matter of King Hamlet's ghost is an indication that he has a close friendship with Hamlet.
This is because Horatio desires what is best for Hamlet and does not wish to intervene in whatever actions will follow.
It is evident that Hamlet can trust no one in the play with the exception of Horatio. All of the other characters have a stronger allegiance with Claudius, the king, who wishes to exploit any opportunity to get rid of Hamlet. Unlike these other characters, Horatio is extremely loyal to Hamlet and even helps him in identifying Claudius as the murder of his father. Horatio also does not reveal to the Claudius that Hamlet is only feigning madness, which shows his loyalty and Hamlet's trust in telling him this information. This also demonstrates how highly Horatio values his friendship with Hamlet over his relationship with Claudius. In contrast, Rosencrantz and Guildenstern change their loyal to Claudius to seek prestige, demonstrating that...