In Twelfth Night, as in many Shakespearean comedies, there are many similarities between a "high" set of characters, the masters or nobles, and a "low" set of characters, the servants. These separate sets of characters and their parallel plots provide comic counterpoint and also reflect the nature of the Twelfth Night holiday, which was typically celebrated by inverting the ordinary social order—a commoner or fool would dress up and get to play the king. The clown Feste's constant mocking of his "betters" further reinforces this idea of upsetting the social order.
Class and social standing is also a recurring theme in Twelfth Night. The priggish Malvolio is obsessed with status, always condescending to the other servants for their lowliness and dreaming of marrying Olivia and becoming a Count. Sir Andrew Aguecheek also wants to marry Olivia, but stands no chance because of his vulgarity and crassness. In marrying Olivia, even the noble Sebastian is moved in part by her wealth and social standing. Viola, at the beginning of the play, has lost her wealth in a shipwreck and in disguising herself as a page-boy is impersonating a different class from her own. Viola's disguise suggests that class, like gender identity, is to some extent a changeable role that you play by adopting a certain set of clothing and behaviors.