Shakespeare wrote nearly 40 plays that fall into four categories: comedies, tragedies, histories, and tragicomedies. Comedies often involve mistaken identities and love plots with happy endings. However, The Merchant of Venice contains anti-semitism. Histories are named after historical figures and set in medieval England, though not always historically accurate. Tragedies involve a noble figure's downfall due to a fatal flaw beyond their control, ending in death. Examples given are King Lear, Hamlet, and Julius Caesar.