Answer:
The attack on Pearl Harbor happened because the Japanese wanted to destroy the U.S. Pacific Fleet so it could not impede Japanese expansion through the South Pacific. Japan also hoped to shatter the morale of the United States to prevent it from entering World War II.
Hope this helps!