Deception is the name of the game in Measure for Measure, as it is in most of Shakespeare's comedies. In the play, the Duke disguises himself as a friar to spy on his deputy and his people, the corrupt Angelo passes himself off as a moral and upright judge. The play is also full of crafty substitutions – Mariana replaces Isabella in a bed trick and a dead pirate's head is substituted for Claudio's. The play also develops an elaborate metaphor that equates dishonesty and illegitimacy with counterfeit coins.
In Measure for Measure, the bed trick is geared toward securing the kind of heterosexual marriage that is often associated with happy endings. At the same time, however, the play also asks whether or not a marriage grounded in deception can ever be successful.