One of Shakespeare's best-known comedies written around 1594-96, A Midsummer Night's Dream, was first published in a quarto edition in 1600. The play's first recorded performance was at court in 1604, but it may originally have been written as part of the wedding celebrations for the Earl of Derby's marriage in 1595. It was certainly performed publicly several times before 1604. Main sources for the play were Ovid's Metamorphoses (see Ovid), the Knight's Tale by Geoffrey Chaucer (c. 1345- 1400), and stories from English folklore. The play, set in Athens in ancient Greece, is a fairy story which explores themes of love and marriage, jealousy, and magic.