Yes, Brahms composed one opera: "Die Rheinnixen" (The Rhine Nixies). Although less renowned than his symphonies and chamber music, this work displays his talent and interest in operatic writing.