AbstractWang Yun’s (1749-1819) Fanhua meng (A Dream of Glory, 1769) is one of the very few extant chuanqi plays written by women in late imperial China. Its female protagonist, who is frustrated by social restrictions placed on women, transforms into a man in a dream. The dream content revolves around the protagonist’s romantic adventures, which feature many awkward and laughable moments. As a fantasy about transgender experience, Fanhua meng has been the subject of critique for its embrace of patriarchal values as well as praise for its reflection on patriarchal depravity. These conflicting views attest to the complexity of Wang Yun’s use of humor in the play. This article explores how and why Wang Yun depicts her protagonist’s journey of desire in a comic mode, and how Wang’s contemporary male readers responded to Wang’s humor. It argues that Wang’s use of humor provides a palatable coating for a provocative reflection on the male privilege of being a desiring subject. As a whole, Wang’s play challenges the vision of worldly success promoted by the long-established and male-dominated chuanqi drama tradition. As a case study, this article draws attention to humor as a mode of self-writing for women writers in late imperial China.