ACT I. Three ladies in the service of the Queen of the Night save the fainting Prince Tamino from a serpent. When they leave to tell the queen, the birdcatcher Papageno bounces in and boasts to Tamino that it was he who slew the serpent. The ladies return to give Tamino a portrait of the queen’s daughter, Pamina, who they say is enslaved by the evil Sarastro, and they padlock Papageno’s mouth for lying. Tamino immediately falls in love with Pamina’s face in the portrait (“Dies Bildnis”). The queen, appearing in a burst of thunder, is grieving over the loss of her daughter; she charges Tamino with Pamina’s rescue (“Zum Leiden bin ich auserkoren”). The ladies hand a magic flute to Tamino and magic silver bells to Papageno to ensure their safety, appointing three spirits to guide them.
Sarastro’s slave, Monostatos, pursues Pamina but is frightened away by the feather-covered Papageno, who tells Pamina that Tamino loves her and intends to save her (“Bei Männern”).
Led to the Temple of Sarastro, Tamino is advised by a high priest that it is the queen, not Sarastro, who is evil. Hearing that Pamina is safe, Tamino charms the animals with his flute, then rushes to follow the sound of Papageno’s pipes. Monostatos and his retainers chase Papageno and Pamina but are rendered helpless by Papageno’s magic bells. Sarastro, entering in ceremony, promises Pamina eventual freedom and punishes Monostatos. Pamina is enchanted by a glimpse of Tamino, who is led into the temple with Papageno.
ACT II. Sarastro tells his priests that Tamino will undergo initiation rites (“O Isis und Osiris”). Sworn to silence, Tamino is impervious to the temptations of the queen’s ladies, who have no trouble derailing the cheerful Papageno from his course of virtue.
The Queen of the Night dismisses Monostatos, whom she finds kissing the sleeping Pamina, and gives her daughter a dagger with which to murder Sarastro (“Der Hölle Rache”). The weeping Pamina is confronted and consoled by Sarastro (“In diesen heil’gen Hallen”).
The gourmand Papageno is just as quick to break a new oath of fasting, and he jokes with a flirtatious old lady, who vanishes when asked her name. Tamino remains steadfast, breaking Pamina’s heart: she cannot understand his silence (“Ach, ich fühl’s”).
The priests inform Tamino that he has only two more trials to complete his initiation. Papageno, who has broken his oath, is eliminated from the trials, but after pleading for a cuddly wife (“Ein Mädchen oder Weibchen”) settles for the old lady. When he promises to be faithful she turns into a young Papagena, but soon disappears.
After the spirits save the despairing Pamina from suicide, she finds Tamino and walks with him through the ordeals by water and fire, protected by the magic flute.
Papageno also is saved from attempted suicide by the spirits, who remind him that if he uses his magic bells he will find true happiness. When he does, Papagena appears and the two plan for the future and move into a bird’s nest.
The Queen of the Night, her three ladies, and Monostatos attack the temple but are defeated and banished. Sarastro joins Pamina and Tamino as the throng hails Isis, Osiris, and the triumph of courage, virtue, and wisdom.