The town was founded in 1032 as Yuriiv by Yaroslav the Wise, whose Christian name was Yuri. The present name of the city, literally translated, is "White Church" and may refer to the (no longer existing) white-painted cathedral of medieval Yuriiv. From 1363 it belonged to the Grand Duchy of Lithuania, and from 1569 to the Polish–Lithuanian Commonwealth, administratively in the Powiat of Kyiv, part of Lesser Poland. It was crown property, but in recognition of his great service, it was granted to the Castellan of Kraków, Janusz Ostrogski. The next owner was Stanisław Lubomirski (1583–1649) and during his time the town was granted Magdeburg Rights by Sigismund III Vasa in 1620.