Twelfth Night is an example of a comedy. It is a play written by William Shakespeare that features a humorous and light-hearted tone. The plot revolves around the mistaken identities and romantic misadventures of the characters. While there are some serious moments, the overall mood of the play is jovial and the resolution is a happy one. Therefore, the play can be categorized as a comedy.