This question already has an answer here:
So I've been studying imperialism. Focusing on Japan, Japan's imperialism is a result of its modernization which is a result of Matthew Perry's siege (not a good word). After the treaty of Kanagawa, Japan started looking to end western influence, as to not follow in China's footsteps, prompting the modernization and industrialization. I read that Japan based its government and parts of its army off that of Germany's.
So in 1940 when Japan allied with Germany in world war 2, was the way Japan went about modernizing a root, if not the root, of this (as Japan was influenced rather strongly by Germany in the 19th century)?