The Central Intelligence Agency was created by the National Security Act of 1947, which was signed into law by President Harry S. Truman. Prior to the creation of the CIA, the United States government did not have a centralized intelligence agency. Instead, various agencies, such as the State Department and the Federal Bureau of Investigation (FBI), carried out intelligence functions. The creation of the CIA was a response to the perceived intelligence failures leading up to and during World War II, and was intended to streamline and coordinate the various intelligence activities of the federal government.