The Marriage of Figaro (play)
The play formed the basis for an opera with a libretto by Lorenzo Da Ponte and music by Mozart, also called "The Marriage of Figaro" (1786). In 1799, another opera based on the same play, "La pazza giornata, ovvero Il matrimonio di Figaro", was produced in Venice with libretto by Gaetano Rossi and music by Marcos Portugal.
L'amor coniugale
Like Beethoven's "Fidelio", the libretto of "L'amor coniugale" is based on Jean-Nicolas Bouilly's French libretto for Pierre Gaveaux's 1798 opera "Léonore ou L'amour conjugal". Unlike "Fidelio" which focuses on the struggle for political liberty, Mayr's opera, also known as "Il custode di buon cuore" (The Good-hearted Jailer) and described in its libretto as a "farsa sentimentale", focuses more on the interpersonal relationships between the protagonists and contains comic elements. Rossi condensed Bouilly's two-act libretto into one act containing 19 scenes and changed the setting from the Napoleonic wars to 17th century Poland.