The cossacks of Bohdan Khmelnytsky cast off the Polish yoke and captured Volochysk, when they defeated Polish Army in the Battle of Pyliavtsi in 1648. Volochysk wasn't annexed to Russia in 1654. It was still a part of Poland due to the Treaty of Zboriv. After the Wisniowiecki family died out, their relative, governor of Kijów Voivodship (Kyiv), Jozef Potocki inherited Volochysk in 1695.