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 began to play parlour music at home and more theatres and concert halls opened. In 1874, Gilbert wrote a short libretto on commission from producer-conductor Carl Rosa, whose wife would have played the leading role, but her death in childbirth cancelled the project. Not long afterwards, Richard D'Oyly Carte was managing the Royalty Theatre and needed a short opera to be played as an afterpiece to Offenbach's "La Périchole". Carte knew about Gilbert's libretto for Rosa and suggested that Sullivan write a score for it. Gilbert read the piece to Sullivan in February 1875, and the composer was delighted with