Wilde's play is a "comedy of manners." It exaggerates the reliance on the superficial of Victorian society--if we behave well, we ARE good people, no matter what lies underneath. Wilde struggled with living a lie, so several of the characters have something to hide. The denouement of the story reveals the lies or subterfuge, throwing the superficial into disarray and revealing in "earnest" who these people really are.