Le nozze di Figaro, ossia la folle giornata (The Marriage of Figaro, or The Day of Madness), K. 492, is a comic opera in four acts composed in 1786 by Mozart, with an Italian libretto written by Lorenzo Da Ponte based on a stage comedy by Pierre Beaumarchais, La folle journée, ou le Mariage de Figaro. The opera was the first of three collaborations between Mozart and Da Ponte; their later collaborations were Don Giovanni and Così fan tutte. It was Mozart who originally selected Beaumarchais's play and brought it to Da Ponte, who turned it into a libretto in six weeks, rewriting it in poetic Italian and removing all of the original's political references. In particular, Da Ponte replaced Figaro's climactic speech against inherited nobility with an equally angry aria against unfaithful wives. Contrary to the popular myth, the libretto was approved by the Emperor, Joseph II, before any music was written by Mozart.