 After the area had been occupied by the Germans, he was mobilised by them to work as a medic at a Russian-prisoner-of-war camp.After his release from German service, in June 1915 he joined the Polish Legions.He served as an officer in the 6th Legions Infantry Regiment ("6 Pułk Piechoty Legionów") and commanded a platoon and a company.