In 1776, Catherine II, the Empress of Russia, invited him to work for her in St. Petersburg. Paisiello worked for the Empress for eight years. He composed operas for her theatre and conducted the royal orchestra. In 1784, he went back to Italy to work for King Ferdinand IV of Naples. He was the chief composer for a famous opera house in Naples, the Teatro di San Carlo. He also composed church music and concert music for the king. Napoleon Bonaparte admired Paisiello's music very much and invited him to Paris. From 1802 until 1804, Paisiello worked in Paris composing music for Napoleon. He then went back to Naples. He was the head of the music school there from 1807 until 1814. The last years of his life were not happy. He had money problems, and his operas were no longer popular. He died in Naples in 1816.