 On his return to Venice he was elected to the Venetian Senate.As senator, he occupied several different magistratures, until returning to military duties in 1715, with the outbreak of the Seventh Ottoman–Venetian War, when he was appointed "Provveditore Generale delle Isole", and later Captain General of the Sea.In 1716, he participated in the successful defence of Corfu, and recaptured Butrint and Santa Maura.