Good times came to an end in the first half of the 17th century.
After the third partition of Poland (1795), Szydłów was annexed by the Austrian Empire, but in 1809 it became the seat of a county in the Duchy of Warsaw.