In this paper, we will examine how John Gay comments on the hypocrisy of middle class in The Beggar’s Opera. Though, throughout the play, Gay is making comments about middle class hypocrisy, it is at the end of the play where the beggar who writes the play claims that it would have had a good moral if only he could have been allowed to hang the hero of the story (Macheath) and violate the convention of having a happy ending.