 Before and during World War I, Leeb served as an adjutant in artillery units and then was appointed a General Staff officer.Leeb was promoted to captain on 1 June 1915.In June 1917, he was transferred to the General staff in the XVth Royal Bavarian Reserve Corps and an infantry division.