With the German invasion of Poland and the outbreak of World War II, Rabbi Elchanan fled with his yeshiva students to Vilna. However, in the month of Kislev 1940, under orders from the Lithuanian government, he was forced to move his yeshiva out of Vilna and relocate it to the nearby city of Trakai.