Twelfth Night, or What You Will is a romantic comedy by William Shakespeare, believed to have been written around 1601–1602 as a Twelfth Night entertainment for the close of the Christmas season. The play centres on the twins Viola and Sebastian, who are separated in a shipwreck. Viola (disguised as a page named 'Cesario') falls in love with the Duke Orsino, who in turn is in love with Countess Olivia. Upon meeting Viola, Countess Olivia falls in love with her, thinking she is a man.

The play expanded on the musical interludes and riotous disorder expected of the occasion, with plot elements drawn from Barnabe Rich's short story "Of Apollonius and Silla", based on a story by Matteo Bandello. The first documented public performance was on 2 February 1602, at Candlemas, the formal end of the Christmastide–Epiphanytide season in the Christian liturgical year's calendar. The play was not published until its inclusion in the 1623 First Folio.

Characters

Synopsis

Viola is shipwrecked on the coast of Illyria and comes ashore with a captain's help. She has lost contact with her twin brother, Sebastian, who she believes has drowned. With the aid of the Captain she disguises herself as a young man named Cesario and enters the service of Duke Orsino. Orsino has convinced himself he is in love with Olivia who is in mourning and who therefore refuses to see entertainments, be in the company of men, or accept love or marriage proposals from anyone, including Orsino, until seven years have passed. Orsino then uses 'Cesario' as an intermediary to profess his passionate love for Olivia. But Olivia falls in love with 'Cesario', setting her at odds with her professed duty. Meanwhile, Viola has fallen in love with Orsino, creating a love triangle: Viola loves Orsino, Orsino loves Olivia, and Olivia loves Viola disguised as Cesario.

Twelfth Night
Daniel Maclise · Public domain via Wikimedia Commons

In the comic subplot, several characters conspire to make Olivia's pompous steward, Malvolio, believe that she has fallen for him. This involves Olivia's riotous uncle, Sir Toby Belch; another would-be suitor, the silly squire Sir Andrew Aguecheek; Olivia's servants Maria and Fabian; and Olivia's witty fool, Feste. Sir Toby and Sir Andrew engage themselves in drinking and revelry, disrupting the peace of Olivia's household until late into the night, prompting Malvolio to chastise them. Sir Toby famously retorts,

"Dost thou think, because thou art virtuous, there shall be no more cakes and ale?" (Act II, Scene III).

Maria suggests taking revenge on Malvolio by convincing him that Olivia is secretly in love with him. She forges a love letter, mimicking Olivia's handwriting, and plants it in the garden. The letter asks Malvolio to wear yellow stockings cross-gartered—a colour and fashion that Olivia hates, to be rude to the rest of the servants, and to smile constantly in Olivia's presence. Watched by Sir Toby, Sir Andrew, and Fabian, Malvolio finds the letter and is surprised and delighted. He starts following the letter's instructions to show Olivia his feelings. Olivia is shocked by the changes in him and, agreeing that he seems mad, leaves him to be cared for by his tormentors. Pretending that Malvolio is insane, the tormentors lock him in a dark chamber. Feste visits Malvolio to mock Malvolio's professed insanity, both as himself and disguised as a priest.

Twelfth Night
George Clint · Public domain via Wikimedia Commons

Meanwhile, Viola's twin, Sebastian, has been rescued by Antonio, a sea captain who previously fought Orsino, yet who accompanies Sebastian to Illyria, despite the danger, because of his admiration for Sebastian.

With their love for practical jokes, Sir Toby and Fabian convince Sir Andrew to challenge Cesario to a duel, knowing that neither of them can fight. Their initial duel is interrupted by Antonio, who believes Cesario to be Sebastian. Orsino's officers then arrest Antonio. Emboldened by this, Sir Andrew mistakes Sebastian for Cesario and slaps him, prompting Sebastian to beat up Sir Andrew. Olivia witnesses the skirmish and chastises Sir Toby, Sir Andrew, and Fabian. Taking Sebastian for 'Cesario', Olivia asks him to marry her, and they are secretly married in a church. Finally, when 'Cesario' and Sebastian appear in the presence of both Olivia and Orsino, there is more wonder and confusion at their physical similarity. At this point, Viola reveals her identity and is reunited with her brother.

Sebastian and Viola reunite, and the cases of mistaken identity are resolved. Orsino and Viola marry (Orsino to Viola: "But when in other habits you are seen, Orsino's mistress, and his fancy's queen"). Fabian confesses the plot against Malvolio, and reveals that Sir Toby has married Maria. Malvolio swears revenge on his tormentors and stalks off, but Orsino sends Fabian to placate him. The play ends with a song sung by Feste.

Twelfth Night
William Powell Frith · Public domain via Wikimedia Commons

Setting

Illyria, the exotic setting of Twelfth Night, is important to the play's romantic atmosphere.

Illyria was an ancient region of the Western Balkans whose coast (the eastern coast of the Adriatic Sea, the only part of ancient Illyria relevant to the play) covered (from north to south) the coasts of modern-day Slovenia, Croatia, Bosnia and Herzegovina, Montenegro, and Albania. It included the city-state of the Republic of Ragusa, which has been proposed as the setting, and which is today known as Dubrovnik, Croatia.

Illyria may have been suggested by the Roman comedy Menaechmi, the plot of which also involves twins who are mistaken for each other. Illyria is also referred to as a site of pirates in Shakespeare's earlier play, Henry VI, Part 2. Most of the characters' names are Italian but some of the comic characters have English names. Oddly, the "Illyrian" lady Olivia has an English uncle, Sir Toby Belch.

Twelfth Night
Yale University Dramatic Association (author of drawing unknown) · Public domain via Wikimedia Commons

It has been noted that the play's setting has other English allusions, such as Viola's use of "Westward ho!", a typical cry of 16th-century London boatmen, and Antonio's recommendation to Sebastian of "The Elephant" as the best place to lodge in Illyria (The Elephant was a pub not far from the Globe Theatre).

Date and text

The full title of the play is Twelfth Night, or What You Will. Subtitles for plays were fashionable in the Elizabethan era, and though some editors place The Merchant of Venice's alternative title, The Jew of Venice, as a subtitle, this is the only Shakespeare play to bear one when first published.

The play was probably finished between 1600 and 1601, a period suggested by the play's referencing of events that happened during that time. A law student, John Manningham, who was studying in the Middle Temple in London, described the performance on 2 February 1602 (Candlemas) which took place in the hall of the Middle Temple at the formal end of Christmastide in the year's calendar, and to which students were invited. This was the first recorded public performance of the play. The play was not published until its inclusion in the First Folio in 1623.

Twelfth Night
Robert Staines / After Daniel Maclise · Public domain via Wikimedia Commons

Themes

Gender

Viola is not alone among Shakespeare's cross-dressing heroines; in Shakespeare's theatre, convention dictated that adolescent boys play female characters, creating humour in the multiplicity of disguise found in a female character who for a while pretended at masculinity. Her cross-dressing enables Viola to fulfil usually male roles, such as acting as a messenger between Orsino and Olivia or serving as Orsino's confidant. But she does not use her disguise to intervene directly in the plot (unlike other Shakespearean heroines, such as Rosalind in As You Like It and Portia in The Merchant of Venice), remaining someone who allows "Time" to untangle the plot.

As Twelfth Night explores gender identity and sexual attraction, having a male actor play Viola enhanced the impression of androgyny and sexual ambiguity. Some modern scholars believe that Twelfth Night, with the added confusion of male actors and Viola's deception, addresses gender issues "with particular immediacy". They also accept that its depiction of gender stems from the era's prevalent scientific theory that females are simply imperfect males. This belief explains the almost indistinguishable differences between the sexes reflected in the play's casting and characters.

Metatheatre

At Olivia's first meeting with "Cesario" (Viola) in Act I, Scene v, she asks her "Are you a comedian?" (an Elizabethan term for "actor"). Viola's reply, "I am not that I play", epitomising her adoption of the role of "Cesario" (Viola), is regarded as one of the play's several references to theatricality and "playing". The plot against Malvolio revolves around these ideas, and Fabian remarks in Act III, Scene iv: "If this were play'd upon a stage now, I could condemn it as an improbable fiction". In Act IV, Scene ii, Feste (The Fool) plays both parts in the "play" for Malvolio's benefit, alternating between adopting the voice of the local curate, Sir Topas, and his own voice. He finishes by likening himself to "the old Vice" of English Morality plays. Other influences of the English folk tradition can be seen in Feste's songs and dialogue, such as his final song in Act V. The last line of this song, "And we'll strive to please you every day", echoes similar lines from several English folk plays.

Twelfth Night
Francis Wheatley · Public domain via Wikimedia Commons

Performance history

During and just after Shakespeare's lifetime

Some scholars argue that Twelfth Night, or What You Will (the play's full title) was probably commissioned for performance as part of the Twelfth Night celebrations held by Queen Elizabeth I at Whitehall Palace on 6 January 1601 to mark the end of the embassy of the Italian diplomat, the Duke of Orsino. Others dispute this, arguing that the "rigid etiquette of Queen Elizabeth's court" would have made it "impossible" for Shakespeare to name a main character in a comedy for the very diplomat attending the performance, and that it is more likely that Shakespeare used the name from the 1601 diplomatic visit when writing his play, which premiered the next winter. It was again performed at Court on Easter Monday in 1618 and on Candlemas night in 1623.

The earliest public performance took place at Middle Temple Hall, one of the Inns of Court, on 2 February (Candlemas night) 1602. The lawyer John Manningham wrote in his diary:

At our feast we had a play called "Twelve Night, or What You Will", much like "The Comedy of Errors" or "Menaechmi" in Plautus, but most like and near to that in Italian called "Inganni". A good practice in it to make the steward believe his lady-widow was in love with him, by counterfeiting a letter as from his lady, in general terms telling him what she liked best in him and prescribing his gesture in smiling, his apparel, etc. and then, when he came to practice, making him believe they took him for mad.

Clearly, Manningham enjoyed the Malvolio story most of all, and noted the play's similarity to Shakespeare's earlier play, as well as its relationship with one of its sources, the Inganni plays.

Restoration to 20th century

The play was one of the earliest Shakespearean works acted at the start of the Restoration; Sir William Davenant's adaptation was staged in 1661, with Thomas Betterton as Sir Toby Belch. Samuel Pepys thought it "a silly play", but saw it three times anyway during the period of his diary on 11 September 1661, 6 January 1663, and 20 January 1669. Another adaptation, Love Betray'd, or, The Agreeable Disappointment, was acted at Lincoln's Inn Fields in 1703.

After holding the stage only in the adaptations in the late 17th century and early 18th century, the original Shakespearean text of Twelfth Night was revived in 1741, in a production at Drury Lane. In 1820 an operatic version by Frederic Reynolds was staged, with music by Henry Bishop.

20th and 21st century

Influential productions were staged in 1912, by Harley Granville-Barker, and in 1916, at the Old Vic.

Lilian Baylis reopened the long-dormant Sadler's Wells Theatre in 1931 with a notable production of the play starring Ralph Richardson as Sir Toby and John Gielgud as Malvolio. The Old Vic Theatre was reopened in 1950 (after suffering severe damage in the London Blitz in 1941) with a memorable production starring Peggy Ashcroft as Viola. Gielgud directed a production at the Shakespeare Memorial Theatre with Laurence Olivier as Malvolio and Vivien Leigh playing both Viola and Sebastian in 1955. The longest-running Broadway production by far was Margaret Webster's 1940 staging starring Maurice Evans as Malvolio and Helen Hayes as Viola. It ran for 129 performances, more than twice as long as any other Broadway production.

A memorable production directed by Liviu Ciulei at the Guthrie Theater in Minneapolis in 1984 was set in the context of an archetypal circus world, emphasising the play's convivial, carnivalesque tone.

When the play was first performed, all female parts were played by men or boys, but it has been the practice for some centuries now to cast women or girls in the female parts in all plays. In 1999 and 2007 Propeller produced the play with an all-male cast, at the Old Vic, and on tour internationally and in the UK. The company of Shakespeare's Globe, London, has produced many notable, highly popular all-male performances, and a highlight of their 2012 season was Twelfth Night, with the Globe's artistic director Mark Rylance playing Olivia. This season was preceded, in February, by a performance of the play by the same company at Middle Temple Hall, to celebrate the 400th anniversary of the play's première, at the same venue. Stephen Fry played Malvolio when the same production was revived in 2012–13, later transferring to sell-out runs in the West End and Broadway; it ran in repertory with Richard III.

Many renowned actresses have played Viola in the latter half of the 20th century, and their performances been interpreted in the light of how far they allow the audience to experience the transgression of stereotypical gender roles. This has sometimes correlated with how far productions of the play go towards reaffirming a sense of unification; for example, a 1947 production concentrated on showing a post-World War II community reuniting at the end of the play, led by a robust hero / heroine in Viola, played by Beatrix Lehmann, then 44 years old. The 1966 Royal Shakespeare Company production played on gender transgressions more obviously, with Diana Rigg as Viola showing much more physical attraction towards the duke than previously seen, and the court in general being a more physically demonstrative place, particularly between males. John Barton's 1969 production starred Donald Sinden as Malvolio and Judi Dench as Viola; their performances were highly acclaimed and the production as a whole was said to show a society crumbling into decay.

Malvolio is a popular character choice among stage actors; he has been portrayed by Ian Holm many times, Simon Russell Beale (Donmar Warehouse, 2002), Richard Cordery (2005), Patrick Stewart, (Chichester, 2007), Derek Jacobi (Donmar Warehouse, 2009), Richard Wilson (2009), and Stephen Fry (The Globe, 2012).

In 2017, the Royal National Theatre's production of Twelfth Night changed some of the roles from male to female, including Feste, Fabian (who became Fabia), and, most notably, Malvolio – who became Malvolia – played by Tamsin Greig to largely positive reviews. As a result, the production played with sexuality as well as gender.

In 2017–18, the Royal Shakespeare Company staged a production directed by Christopher Luscombe; Adrian Edmondson played Malvolio, Kara Tointon Olivia, and Dinita Gohil Viola.

In 2022, Old Fruit Jar Productions staged a 1980s-inspired twist on the play at Royal Court Theatre, Liverpool, swapping lords and ladies of stately homes for rowdy Benidorm bars and booze-fuelled escapades, as an introduction to Shakespeare for audiences unfamiliar with his work.

The St. Louis Shakespeare Festival presented Twelfth Night in 2023 as part of its annual Shakespeare in the Park series in Forest Park. Directed by Lisa Portes, the production reimagined the play in a contemporary Miami-inspired setting, with Viola and Sebastian portrayed as Cuban refugees. Featuring a predominantly Latiné cast, including Gabriela Saker as Viola and Felipe Carrasco as Orsino, the production incorporated live music and a vibrant, Latin-inflected aesthetic. The staging was noted for its culturally specific reinterpretation and its emphasis on themes of migration, identity, and community, attracting large audiences during the festival’s 23rd season.

In 2025, the Public Theater staged Twelfth Night directed by Saheem Ali at the Delacourte Theater. This production starred Lupita Nyong'o as Viola, Sandra Oh as Olivia, and Peter Dinklage as Malvolio. This production was later filmed for PBS' Great Performances. The episode aired on 14 November, 2025.

Adaptations

Stage

Musicals

Due to its themes such as young women seeking independence in a "man's world", "gender bending" and "same sex attraction", there have been a number of re-workings for the stage, particularly in musical theatre, among them Your Own Thing (1968), Music Is (1977), All Shook Up (2005), and Play On! (1997), the last two jukebox musicals featuring the music of Elvis Presley and Duke Ellington, respectively. Another adaptation is Illyria (2002) by composer Pete Mills, which continues to perform regularly throughout the United States. In 2018, the Public Theatre workshopped and premiered a musical adaptation of Twelfth Night with original music by Shaina Taub, who also played the role of Feste. In 1999, the play was adapted as Epiphany by the Takarazuka Revue, adding more overt commentary on the role of theatre and actors, as well as gender as applied to the stage (made more layered by the fact that all roles in this production were played by women).

There are many new modern plays but mostly still played in Early Modern English.

Plays

Theatre Grottesco, a Lecocq-inspired company based out of Santa Fe, New Mexico, created a modern version of the play from the point of view of the servants working for Duke Orsino and Lady Olivia, entitled Grottesco's 12th Night (2008). The adaptation takes a much deeper look at the issues of classism, and society without leadership. In New York City, Turn to Flesh Productions, a theatre company that specializes in creating "new Shakespeare shows", developed two plays focused on Malvolio: A Comedy of Heirors, or The Imposters by verse playwright, Emily C. A. Snyder, which imagined a disgraced Malvolio chasing down two pairs of female twins in Syracuse and Ephesus, and Malvolio's Revenge by verse playwright, Duncan Pflaster, a queer sequel to Twelfth Night. Both plays were originally written for submission to the American Shakespeare Center's call for plays in conversation with the Bard through the Shakespeare's New Contemporaries program.

Film

1910: Vitagraph Studios released the silent, short adaptation Twelfth Night starring actors Florence Turner, Julia Swayne Gordon, and Marin Sais.

1985: Just One of the Guys, directed by Lisa Gottlieb, is a loose update of the story set in a modern high school.

1986: Twelfth Night, an Australian production.

1996: Twelfth Night, Or What You Will, adapted and directed by Trevor Nunn and set in the 19th century, stars Imogen Stubbs as Viola, Helena Bonham Carter as Olivia, and Toby Stephens as Duke Orsino. The film also features Mel Smith as Sir Toby, Richard E. Grant as Sir Andrew, Ben Kingsley as Feste, Imelda Staunton as Maria, and Nigel Hawthorne as Malvolio. Much of the comic material was downplayed into straightforward drama, and the film received some criticism for this.

1998: Shakespeare in Love contains several references to Twelfth Night. "Viola" (Gwyneth Paltrow) is the daughter of a wealthy merchant who disguises herself as a boy to become an actor. Near the end of the movie, Elizabeth I (Judi Dench) asks Shakespeare (Joseph Fiennes) to write a comedy for the Twelfth Night holiday. Viola is presented in the final scene of the film as Shakespeare's inspiration for the heroine of Twelfth Night. In a nod to the shipwrecked opening of the play, the movie includes a scene where the character Viola, separated from her love by an arranged marriage and bound for the American colonies, survives a shipwreck and comes ashore to Virginia.

2001: Disney Channel Original Movie Motocrossed sets the story in the world of motocross racing.