The bed trick is a plot device in traditional literature and folklore; it involves a substitution of one partner in the sex act with a third person (in the words of Wendy Doniger, "going to bed with someone whom you mistake for someone else"). In the standard and most common form of the bed trick, a man goes to a sexual assignation with a certain woman, and without his knowledge that woman's place is taken by a substitute.