The first record of Ilya was in 1473, where it is mentioned as belonging to Bogdan Sakovich, governor of Braslaw for the Grand Duchy of Lithuania. In 1564, Ilya is first mentioned as a town. According to the 1650 inventory, the location included a market square and three streets, 93 yards and 10 public houses.