The Magic Flute ideals of Sarastro's community and seeks to join it. Separately, then together, Tamino and Pamina undergo severe trials of initiation, which end in triumph, with the Queen and her cohorts vanquished. The earthy Papageno, who accompanies Tamino on his quest, fails the trials completely but is rewarded anyway with the hand of his ideal female companion Papagena. The opera was the culmination of a period of increasing involvement by Mozart with Schikaneder's theatrical troupe, which since 1789 had been the resident company at the Theater auf der Wieden. Mozart was a close friend of one of the singer-composers of the
Wolfgang Amadeus Mozart and Prague pointed out how precarious opera production was in the city throughout the eighteenth century. Indeed, productions of Italian opera in Prague ceased again already in 1789, not to re-appear again until 1791, due to the departure of the impresario Domenico Guardasoni and the death of the impresario Pasquale Bondini. Another possible reason why Mozart didn't stay is given by Volkmar Braunbehrens, citing Schenk: the death in Vienna in November 1787 of Gluck, whose post in the Imperial musical establishment Mozart sought (and ultimately got, though at a much lower salary); Mozart needed to return home to lobby for the position.