Princess Ida; or, Castle Adamant is a comic opera with music by Arthur Sullivan and a libretto by W. S. Gilbert. It was their eighth operatic collaboration of fourteen; the next was The Mikado. Princess Ida opened at the Savoy Theatre on 5 January 1884 and ran for 246 performances. The piece concerns a princess who founds a women's university and teaches that women are superior to men and should rule in their stead. Prince Hilarion, to whom she was betrothed in infancy, sneaks into the university, together with two friends, with the aim of collecting his bride. They disguise themselves as female students but are discovered, and all soon face a literal war between the sexes.
The opera satirizes feminism, women's education and Darwinian evolution, which were controversial topics in conservative Victorian England. Princess Ida is based on a narrative poem by Alfred, Lord Tennyson called The Princess (1847), and Gilbert had written a farcical musical play, based on the poem, in 1870. He lifted much of the dialogue of Princess Ida directly from his 1870 farce. It is the only Gilbert and Sullivan opera in three acts and the only one with dialogue in blank verse.