William Shakespeare wrote 37 plays across four genres:
Histories (11): King John, Richard II, Henry IV Parts 1–2, Henry V, Henry VI Parts 1–3, Richard III, Henry VIII, Edward III (attributed).
Comedies (17): Comedy of Errors, Taming of the Shrew, Two Gentlemen of Verona, Love's Labour's Lost, Midsummer Night's Dream, Merchant of Venice, As You Like It, Twelfth Night, Measure for Measure, All's Well That Ends Well, Merry Wives of Windsor, Troilus and Cressida, Pericles, Winter's Tale, Tempest, Two Noble Kinsmen (attributed).
Tragedies (9): Titus Andronicus, Romeo and Juliet, Coriolanus, Timon of Athens, King Lear, Macbeth, Hamlet, Othello, Antony and Cleopatra.
Romances (3): Cymbeline, The Tempest, The Winter's Tale.
(Note: The Tempest and The Winter's Tale appear in both Comedies and Romances per different classification systems.)