The Magic Flute (German Die Zauberflöte, K. 620) is an opera in two acts composed in 1791 by Wolfgang Amadeus Mozart to a libretto by Emanuel Schikaneder. The work is in the form of a Singspiel, a popular form which included both singing and spoken dialogue.