 It was also visited by the future King of France, Louis XVIII in 1804.In 1812, both the Russian Tsar Alexander I and the French Emperor Napoleon used the Palace as their residence.During Napoleon's invasion of Russia, he organized military operations and Lithuanian army units from this Palace, including five regiments of infantry, four cavalry regiments, and the National Guard of Vilnius.