After five years of study in the seminary at Ceneda (probably with the priesthood as an object) he went to Venice, where he indulged in amorous escapades which compelled his departure from that city. He went to Treviso and taught rhetoric in the university, incidentally took part in political movements, lampooned an opponent in a sonnet, and was ordered out of the republic. In Dresden, whither he turned his steps, he found no occupation for his talents, and journeyed on to Vienna. There, helped by Salieri, he received from Joseph II the appointment of poet to the imperial theater and Latin secretary. Good fortune brought him in contact with Mozart, who asked him to make an opera book of Beaumarchais's "Mariage de Figaro." The great success of Mozart's opera on this theme led to further co-operation, and it was on Da Ponte's suggestion that "Don Giovanni" was undertaken, the promptings coming largely from the favor enjoyed at the time by Gazzaniga's opera on the same subject, from which Da Ponte made generous drafts--as a comparison of the libretti will show. Having incurred the ill will of Leopold, Da Ponte was compelled to leave Vienna on the death of Joseph II. He went to Trieste, where Leopold was sojourning, in the hope of effecting a reconciliation, but failed; but there he met and married an Englishwoman who was thenceforth fated to share his checkered fortunes. He obtained a letter recommending him to the interest of Marie Antoinette, but while journeying toward Paris learned of the imprisonment of the Queen, and went to London instead. A year was spent in the British metropolis in idleness, and some time in Holland in a futile effort to establish an Italian theater there. Again he turned his face toward London, and this time secured employment as poet to the Italian opera and assistant to the manager, Taylor. He took a part of Domenico Corri's shop to sell Italian books, but soon ended in difficulties, and to escape his creditors fled to America, arriving in New York on June 4, 1805.