sentences:  The castle was a main defensive fort of the city during its existence.As it follows from Rus' Chronicles, the first fortifying structures appeared on the Castle Hill in the time Halych-Volhynia, and were built by Leo I of Halych from wood.It was originally a wood and soil construction, as most others at that time.