On July 2, 1921, U.S. President Warren G. Harding signed the Knox–Porter Resolution, which had been passed by the U.S. Congress and ended the state of war between the U.S. and Germany, Austria and Hungary, further setting the stage for bilateral peace treaties. The treaty between the U.S. and Germany, formally titled the "Treaty between the United States and Germany Restoring Friendly Relations" was signed in Berlin on August 25, 1921. The United States Senate advised ratification on October 18, 1921 and the treaty was ratified by President Harding on October 21, 1921.