Die Meistersinger von Nürnberg (The Mastersingers of Nuremberg) is an opera by Richard Wagner. It is the only comic opera that Wagner wrote. Wagner wrote the words (the libretto) in 1862 and composed the music in 1867. It was first performed in Munich in 1868.