Japan wanted to deplete the U.S. Navy's forces, so they wouldn't have such a hold on the Pacific. The reason why they attacked was kind of out of spite for the U.S. because Japan and China were fighting a war and the U.S. supported China and refused to give Japan any oil and placed a trade embargo on them.