After the German attack against the Soviet Union on 22 June 1941 (beginning of the Great Patriotic War), most institutes and universities from the western part of Russia were evacuated into the eastern regions, far from the battle lines. Nikolay Bogolyubov moved to Ufa, where he became Head of the Departments of Mathematical Analysis at Ufa State Aviation Technical University and at Ufa Pedagogical Institute, remaining on these positions during the period of July 1941 – August 1943.