The Magic Flute, an opera by Wolfgang Amadeus Mozart with libretto by Emanuel Schikaneder, was composed in 1791 and premiered to great success. It has been an important part of the operatic repertory ever since, and has inspired a great number of sequels, adaptations, novels, films, artwork, and musical compositions.