By the 20th century, Ilya had a strong Jewish community. After the Soviet invasion of Poland in World War II, the area was annexed back to the Soviet Union. The area fell to the Nazis after Operation Barbarossa, and the Jews of Ilya were forced into a ghetto.