How did the great depression lead to WWII?

Germany was impoverished and wanted to annex territory that would provide it with more raw materials.

Japan also wanted more raw materials so tried to capture regions that could supply them.