Where did the war take place and why?

It took place originally in Europe, but spread worldwide when Japan attacked Pearl Harbor.