After visiting Venice and Urbino in 1707, Scarlatti went back to Naples in 1708, and stayed there until 1717. However, the audiences in Naples no longer seemed interested in his music. They liked their serious operas to include comic music. Some of his best operas were written for Rome where they were produced at the Teatro Capranica. He also wrote some church music and music for royal weddings. He died in Naples.