One reason Japan attacked the U.S. naval base at Pearl Harbor was U.S. trade sanctions had caused shortages of oil, gas, and rubber.
These sanctions, particularly an oil embargo, significantly impacted Japan's economy and military capabilities, prompting them to take aggressive actions to secure resources by attacking U.S. forces.