Terebovlia (, , ) is a small city in Ternopil Raion, Ternopil Oblast (province) of western Ukraine. It is an ancient settlement that traces its roots to the settlement of Terebovl which existed in Kievan Rus'. The name may also be variously transliterated as Terebovlya, Terebovla, or Terebovlja. Terebovlia hosts the administration of Terebovlia urban hromada, one of the hromadas of Ukraine. The population census was 13,661; current population is estimates as In 1913 the city counted 10,000 residents, of whom 4,000 were Poles, 3,200 were Rusyns (Ruthenians) and 2,800 were Jews. In 1929 there were 7,015 people, mostly Polish, Ukrainian and Jewish. Until September 17, 1939, the day of the Soviet invasion of Poland, Trembowla was a county seat within the Tarnopol Voivodeship of the Second Polish Republic. Prior to the Holocaust, the city was home to 1,486 Jews, and most of them (around 1,100) were shot by Germans in the nearby village of Plebanivka on April 7, 1943. History Terebovlia is one of the oldest cities in West Ukraine. It was first mentioned in the chronicles of 1097 (Primary Chronicle). During the Red Ruthenia times it used to be the center of Terebovlia principality. It was called Terebovl (). Terebovlia principality included lands of the whole southeast of Galicia, Podolia and Bukovina. Polish King Casimir III the Great became the suzerain of Halych after the death of his cousin, Boleslaw-Yuri II of Galicia, when the city became part of the Polish domain. It was fully incorporated into Poland in 1430 during the reign of king Władysław II Jagiełło, while his son Casimir IV Jagiellon granted the town limited Magdeburg Rights. After the rebuilding of the castle in Terebovlia in 1366, Poland (Podole Voivodeship) administered the town. It was part of the system of border fortifications of the Polish Kingdom and later the Polish–Lithuanian Commonwealth against Moldavian and Wallachian incursions. The town also later resisted frequent invasion by the Crimean Tatars, the Ottomans and the Zaporozhian Cossacks from the south and southeast. Because of the threat of invasion, the Terebovlya castle, monastery and churches were all designed as defensive structures. The town was the seat of the famous starost and the most successful 16th-century anti-Tatar Polish commander Bernard Pretwicz, who died there in 1563. In 1594, the Ukrainian cossack rebel Severyn Nalyvaiko sacked the town. Khmelnytsky Uprising During the Khmelnytsky Uprising, Terebovl became one of the centers of the