After witnessing Hamlet's erratic behavior during the "nunnery scene" (Act III, Scene i)—where Hamlet confronts Ophelia, denies his love, and rages at women and humanity—King Claudius reaches a critical conclusion:
Hamlet's madness is not rooted in love, but poses a dangerous threat to the throne.
He orders Hamlet sent to England under the escort of Rosencrantz and Guildenstern. Ostensibly, this is for a "change of scenery" to restore his mental state. Secretly, Claudius bears a sealed letter ordering Hamlet's execution upon arrival.
Claudius hopes this removal will secure his crown and allow Hamlet to "come to terms with his father's death"—but his true motive is self-preservation. He recognizes that Hamlet's instability, whether feigned or real, makes him unpredictable and dangerous.
This decision sets in motion the play's final tragic arc: Hamlet's escape, return, and the fatal duel.