In the XVI century Ternopil was a fortification centre, which occupied a small territory. It was circumfluous from three sides and fossed on the east. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
In 1548 Ternopil was gained a <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />Magdeburg right, which provided it with some privileges. Citizens were exempt from taxes for 15 years and for 20 years from paying customs. There were allowed three trade fairs per year and weekly markets.
In 1550 Ternopil received a privilege, according to which all merchants, who went from Halych, Kolomyya, and Koropets to Kremenets and other Volyn towns, had to go through Ternopil and pay customs for its development and protective power. From 1566 it was allowed to create warehouses for storing goods and Precarpathian salt in the city. Ternopil became an important trade centre.
However it was impossible to live in peace in those times. In 1544 Ternopil citizens were protecting an unfinished castle from Tatars till royal forces came from Sandomyr. A lot of people were taken as Tatar captives during the attack in 1575. Horde encamped near Ternopil in 1589, though mostly the city was damaged after an attack in 1618, when the fire destroyed all the wooden buildings.
During the Vyzvolna Viyna (War for Liberation), in 1653, Bohdan Khmelnytskyy on his way to meet forces of Yan II Kazymyr encamped near Ternopil, where there was a sultan embassy in those times.
In 1620, when Podillya was attacked by a powerful army of Ottoman Empire, forces of Shyshman-pasha devastated the town.