The Pasha entered the city three days later. Turkish occupiers remained in Kamieniec for 27 years, until 1699. In 1692, to stop a possible Turkish attack, Hetman Stanislaw Jan Jablonowski built the stronghold of Okopy Swietej Trojcy some 20 kilometres (12 mi) from Kamieniec.