After the death of the Emperor, Salieri was reappointed Kapellmeister, and Cimarosa was released. He left Vienna and returned to Naples where he entered the service of the King. He was hailed in Naples as a great operatic hero, and his Il matrimonio segreto was performed 57 times running. However, Cimarosa's last years were marked by misfortune. When the French Republican army marched into Naples, Cimarosa enthusiastically declared his support of the revolution. He was immediately thrown into prison and condemned to death. The King eventually released him, but banished him from Naples. Broken in spirit, Cimarosa attempted to return to Russia, but died in Venice in 1801. Because of rumors that he was poisoned, the government was obliged to perform an autopsy. In addition to operas, Cimarosa left behind oratorios, masses, and cantatas, and some instrumental music.