Twelfth Night, or What You Will was likely first performed in 1601 at Middle Temple Hall, London, as part of Candlemas festivities (February 2). The exact date is unrecorded—typical for Elizabethan plays. The play was first published in the 1623 First Folio.
The play's title refers to the twelfth night of Christmas (Epiphany eve), a time of revelry, disguise, and misrule—perfect for a comedy of mistaken identity and gender-bending. A law-student audience at Middle Temple would have appreciated the legal jokes and satirical edge.