sentences:  Although the original lease was for a duration of 18 years, it was renewed in 1580 for 10 years and in 1589 for an additional 18 years.The city was besieged or captured by various armies during the Thirty Years' War.In 1645 along with the Duchy of Opole and Racibórz it returned to Poland under the House of Vasa, and in 1666 it fell to Austria again.