According to the 1882 Geographical Dictionary of the Kingdom of Poland, the town began as a manor of a Radziwiłł prince, and as early as 1634, there was both a Christian church and Jewish synagogue. According to folklore, the prince named his manor and a nearby rivulet "Ilya" after a dream in which the prophet Elijah (Ilya) came to him.[2]