Mistaken identity is a plot device whereby one person is taken for another and, often, vice versa. It is used in many comical plays, exemplified by the Shakespeare's Comedy of Errors, inspired by Menaechmi and Amphitryon by Plautus. In some cases mistaken identity involves disguise, e.g., accidentally identical costumes. Often it is a base of a romantic comedy.