The Treaty of Khotyn was signed on 9 October 1621 which resulted in no territorial gain or loss, but Sigismund was to relinquish his claims on Moldavia and the Ottoman Empire was prevented from marching into Poland. Sultan Osman himself was not fully satisfied with the war's outcome and blamed the defiant janissaries. His wish and plans to modernize the army, which was blamed for the defeat, were however opposed by the traditionalist janissary units. That opposition resulted in the 1622 rebellion in which Osman II was deposed and strangled.