After the Axis invasion of Yugoslavia in April 1941, Krek emigrated to Palestine and then to London, as a member of the Yugoslav Government in Exile, led by Dušan Simović. Following the death of Fran Kulovec in the Belgrade air raid, Krek became the exile leader of the Slovene People's Party, while Marko Natlačen became the party's leader in occupied Slovenia.