 In 1686 he collaborated with Scarlatti and Pasquini on the opera "Santa Dimna".In 1685 he composed an oratorio, "Golia abbattuto", for King John III of Poland.The work was written to celebrate the Holy League's victory against the Turks; he gained the commission through the efforts of Pope Innocent XI.