Between 1772 and 1809, the city was incorporated into the Austrian Empire's Crown Province of Galicia.
In 1809 the city was incorporated to the Napoleonic Duchy of Warsaw whereas after the fall of Napoleon, following the decisions taken during the Congress of Vienna in 1815, Zamość became a part of the Kingdom of Poland, also called Congress Poland, which was controlled by the Russian Empire.