With William Shakespeare's play Hamlet as the backdrop, Rosencrantz and Guildenstern Are Dead concerns the musings and mishaps of the titular characters. The play is structured as the inverse of Hamlet, in which Rosencrantz and Guildenstern are two minor characters who were childhood friends of the Prince; instead, the duo remains the focus and Hamlet himself is a minor role whose actions occur largely offstage, with the exception of a few short scenes in which the dramatic plays converge.
In Hamlet, Rosencrantz and Guildenstern operate under the King's command in an attempt to discover Hamlet's motives and plot against him. Hamlet, however, derisively mocks and outwits them, so that they, rather than he, are sentenced to death in the end. Rosencrantz and Guildenstern Are Dead explores these events from the perspective of the duo; their actions seem largely nonsensical because they are superseded and, therefore, determined by Hamlet's plot.