D'Oyly Carte Opera Company be released from the partnership on several occasions. Nevertheless, they coaxed eight comic operas out of Gilbert and Sullivan in the 1880s. When "Princess Ida" closed after a comparatively short run of nine months, for the first time in the partnership's history, the next opera was not ready. To make matters worse, Gilbert suggested a plot in which people fell in love against their wills after taking a magic lozenge – a scenario that Sullivan had previously rejected, and he now rejected the "lozenge plot" again. Gilbert eventually came up with a new idea and began work in May 1884.
Gilbert and Sullivan to commission another full-length opera from the team. Gilbert and Sullivan scored their first international hit with "H.M.S. Pinafore" (1878), satirising the rise of unqualified people to positions of authority and poking good-natured fun at the Royal Navy and the English obsession with social status (building on a theme introduced in "The Sorcerer", love between members of different social classes). As with many of the Gilbert and Sullivan operas, a surprise twist changes everything dramatically near the end of the story. Gilbert oversaw the designs of sets and costumes, and he directed the performers on stage. He sought realism in