Around the 12th century Chernobyl was part of the land of Kievan Rus′. The first known mention of the settlement as Chernobyl is from an 1193 charter, which describes it as a hunting lodge of Knyaz Rurik Rostislavich. In 1362 it was a crown village of the Grand Duchy of Lithuania. Around that time the town had own castle which was ruined at least on two occasions in 1473 and 1482. The Chernobyl castle was rebuilt in the first quarter of the 16th century being located nearby the settlement in a hard to reach area. With revival of the castle, Chernobyl became a county seat. In 1552 it accounted for 196 buildings with 1,372 residents, out of which over 1,160 were considered city dwellers. In the city were developing various crafts professions such as blacksmith, cooper among others. Near Chernobyl has been excavated bog iron, out of which was produced iron. The village was granted to Filon Kmita, a captain of the royal cavalry, as a fiefdom in 1566. Following the Union of Lublin, the province where Chernobyl is located was transferred to the Crown of the Kingdom of Poland in 1569. Under the Polish Crown, Chernobyl became a seat of eldership (starostwo). During that period Chernobyl was inhabited by Ukrainian peasants, some Polish people and a relatively large number of Jews. Jews were brought to Chernobyl by Filon Kmita, during the Polish campaign of colonization. The first mentioning of Jewish community in Chernobyl is in the 17th century. In 1600 in the city was built the first kosciol (Polish word for the Roman Catholic church). Local population was persecuted for holding Eastern Orthodox rite services. The traditionally Eastern Orthodox Ukrainian peasantry around the town were forcibly converted, by Poland, to the Ruthenian Uniate Church. In 1626, during the Counter-reformation, a Dominican church and monastery were founded by Lukasz Sapieha. A group of Old Catholics opposed the decrees of the Council of Trent. The Chernobyl residents actively supported the Khmelnytsky Uprising (1648–1657).