The Magic Flute is an opera by Mozart that premeired in 1791.