The allegorical plot was influenced by Schikaneder and Mozart’s interest in Freemasonry and concerns the initiation of Prince Tamino. Enlisted by the Queen of the Night to rescue her daughter Pamina from the high priest Sarastro, Tamino comes to admire the high ideals of Sarastro. He and Pamina both join Sarastro’s community, while the Queen and her allies are vanquished.