 In 1914–1917 Rei was an artillery officer in World War I at the Fort of St. Petersburg.In 1917 and 1918 he was in the Estonian army units (formed after the Second Russian Revolution in March 1917 by the initiative of Estonian politicians, who achieved the permission to concentrate the Estonian soldiers).He was the Assistant Chairman of the Supreme Committee of the Estonian military.