On June 26, 1945, the United Nations Charter was signed in San Francisco. The United States played a leading role in its drafting. The charter created a framework for international cooperation and conflict prevention. It established the General Assembly and Security Council. The signing marked a hopeful moment after the devastation of World War II. The United Nations became a major component of U.S. foreign policy.