Macbeth is a play by William Shakespeare. Shakespeare wrote three types of plays; histories, comedies and tragedies, and Macbeth is the shortest tragedy written by Shakespeare. It was written between 1603 and 1607, during the reign of King James I of England.