Львовско-Сандомирская операция
After the Red Army recaptured Lviv in the Lvov–Sandomierz Offensive of 1944, Banach returned to the University and helped re-establish it after the war years. However, because the Soviets were removing Poles from annexed formerly Polish territories, Banach began preparing to leave the city and settle in Kraków, Poland, where he had been promised a chair at the Jagiellonian University. He was also considered a candidate for Minister of Education of Poland. In January 1945, however, he was diagnosed with lung cancer and was allowed to stay in Lwów. He died on 31 August 1945, aged 53. His funeral at the Lychakiv Cemetery was attended by hundreds of people.