One of Hamlet's most masterful strokes of dramatic irony occurs in the moments immediately following the Ghost's departure. Hamlet, Horatio, and Marcellus are on the platform, swearing oaths on Hamlet's sword—binding themselves to silence about the supernatural visitation and the Prince's "antic disposition" to come.
Simultaneously, unseen by them, Claudius and Gertrude are arranging Hamlet's departure for England.
Shakespeare doesn't stage this simultaneously (the play's structure separates the scenes), but the timeline is clear: while Hamlet commits to vengeance and secrecy, the Claudius-Gertrude power structure is already maneuvering to remove him. They don't know about the Ghost. They don't know Hamlet knows. They only know he's destabilizing—grieving too loudly, acting too strangely—and the solution is distance.
This convergence creates a perfect dramatic irony:
Hamlet's vow to "wipe away all trivial fond records" and remember only the Ghost's command parallels Claudius's decision to dispatch him. Both are commitments to action. Both are responses to the same destabilizing truth (the murder). And both will fail in ways neither anticipates.
The secrecy oath feels like a beginning. The exile plan is an ending. Their collision course is the play's engine.