In 1807 it was regained by Poles and included within the short-lived Duchy of Warsaw, and after its dissolution in 1815, it fell to the Russian Partition of Poland.
The recovery of the local economy was possible to the prosperous railway route connecting Warsaw and Skierniewice built in 1846.
In 1870 the town's municipal rights were taken away by the Tsarist authorities as punishment for the unsuccessful Polish January Uprising.
Following the joint German-Soviet invasion of Poland, which started World War II in September 1939, Grodzisk Mazowiecki was occupied by Germany until 1945.
The Polish resistance was active in the town, and even the underground University of the Western Lands gave secret lectures.
[3] Local Polish farmer Stanisława Sławińska hid Jews from the Nazis in her house in Grodzisk Mazowiecki.
According to a legend regarding the town charter, monarchs were riding through the settlement of Grodzisk on their way to hunt in Jaktorowska forest.