Why Did Japan Attack the United States?

Japan attacked the United States on December 7, 1941 because they mistakenly thought that by destroying Pearl Harbor and the US Pacific Fleet the US would not be able to retaliate. Japan thought the US was meddling in the ongoing battle between Japan and China and they did not want the US in the war.