The first opera was a French one written in 1713. It was a comic opera. Gluck wrote a ballet for Vienna in 1761. Vincenzo Righini wrote an opera that was performed in Vienna and Prague in 1777 ten years before "Don Giovanni". There were other operas written about Don Juan. The best known opera was one by Giovanni Bertati and Giuseppe Gazzaniga. It was performed in Venice in 1787. It was a great success. Da Ponte knew this opera. He made use of Bertati's libretto when he wrote "Don Giovanni".