Horatio remains steadfastly loyal to Hamlet throughout the play. He serves as Hamlet’s trusted confidant and friend, offering unwavering support amid the tragedy. His devotion endures until the final moments, demonstrating deep, abiding friendship.