During the Khmelnytsky Uprising of 1648, Krzysztof Lada-Grodzicki commanded the fortress. It surrendered to the Cossacks on 1 October 1648, after a 7-month siege, upon hearing the news of Polish defeat at the Battle of Pyliavtsi on 24 September 1648. Rank and file defenders were massacred or drowned in the river after they had left Kodak upon capitulation. The Cossacks sold the Kodak commander and some other officers to the Tatars as slaves.