Claudius and Gertrude set Rosencrantz and Guildenstern two boyhood friends of Hamlet to spy on him.When Hamlet himself enters he is confronted first by Polonius and then by Rosencrantz and Guildenstern whom he quickly identifies as Claudius’s spies.