The Magic Flute is a celebrated opera composed in 1791 by Wolfgang Amadeus Mozart. Mozart employed a libretto written by his close colleague Emanuel Schikaneder, the director of the Theater auf der Wieden at which the opera premiered in the same year. (He also played the role of Papageno). Grout and Williams describe the libretto thus: