An ideal husband is a comedy by Oscar Wilde, published in 1899. Oscar Wilde penned this comedy knowing that his affair with a man would become public soon, so the play's storyline is rooted in the theme of blackmail. "Sooner or later" - Wilde notes - "we shall all have to pay for what we do". An ideal husband was a success in theaters, but Wilde's name was soon removed from the posters.