William Shakespeare wrote over 37 plays throughout his career, starting with historical plays in the late 1580s through the early 1590s. He then focused on comedies such as A Midsummer Night's Dream and The Merchant of Venice in the 1590s. Shakespeare ended his comedic era and began focusing on tragedies such as Romeo and Juliet, Julius Caesar, Hamlet, Othello, King Lear, Coriolanus, and Macbeth from the late 1590s through the end of his career. Shakespeare's plays changed genres over time to match what was popular, from histories to comedies to tragedies, showing his evolution as a writer.