On 6 April 1917, the United States declared war on Germany and officially entered World War I. Six weeks later, on 18 May 1917, the Selective Service Act was passed, which authorized the president to increase the military establishment of the United States.