The later administrative center, the city of Halych, has long history. Prior to the mid-13th century it was the center of the once prominent Halych-Volyn Principality. In 1241 the city of Halych was destroyed during the Mongol invasion therefore the state capital was transferred to Kholm by the King Danylo Halytsky, while the destroyed Halych with the surrounding settlement was left as the bishop residence. Around this period the area was under series of conflicts involving the struggle between the Ruthenian factions as well as Kingdom of Poland, Kingdom of Hungary, Grand Duchy of Lithuania, and Golden Horde. In the 13th century the Halych Principality as part of the Ruthenian (Rus) Kingdom stretched from Przemyśl to Podolia, form Mukacheve to Terebovl, and from Busk to the Southern Bucovina.