 The Swedes laid siege to Lviv, but were forced to retreat before capturing it.The following year saw Lviv invaded by the armies of the Transylvanian Duke George I Rákóczi, but the city was not captured.In 1672 Lviv was again besieged by the Turkish army of Mehmed IV, however the Treaty of Buczacz ended the war before the city was taken.