"H.M.S. Pinafore" is a comic opera by Gilbert and Sullivan, first performed in 1878. The story is set aboard a British warship and revolves around the romantic entanglements of Josephine, the captain's daughter, and Ralph, a lower-class sailor. The opera humorously explores themes of social class and love.
The plot thickens as Sir Joseph Porter, a wealthy and influential man, also desires Josephine. The characters navigate their feelings amidst the constraints of their social standings, leading to comedic misunderstandings and ultimately a resolution that challenges societal norms. The opera is known for its catchy tunes and witty dialogue.