sentences:  In the Middle Ages the city prospered mainly due to trade and crafts, especially brewing.After the dissolution of the Duchy of Opole and Racibórz in 1532, it was incorporated as Gleiwitz into the Habsburg Monarchy.Because of the vast expenses incurred by the Habsburg Monarchy during their 16th century wars against the Ottoman Empire, Gleiwitz was leased to Friedrich Zettritz for the amount of 14,000 thalers.