After the Xinhai Revolution in 1911, the United States government recognized the Republic of China (ROC) government as the sole and legitimate government of China despite a number of governments ruling various parts of China.
The United States formally declared war on Japan in December 1941 following the Japanese surprise attack on Pearl Harbor.