who was japan allied with during world war ii
Germany, Italy.
Axis powers
 The "Rome–Berlin Axis" became a military alliance in 1939 under the so-called "Pact of Steel", with the Tripartite Pact of 1940 leading to the integration of the military aims of Germany, Italy and Japan.
wiki:11582721
Axis powers [SEP] Introduction
The almost simultaneous second step was the signing in November 1936 of the Anti-Comintern Pact, an anti-communist treaty between Germany and Japan. Italy and Spain joined the Pact in 1937. The "Rome–Berlin Axis" became a military alliance in 1939 under the so-called "Pact of Steel", with the Tripartite Pact of 1940 leading to the integration of the military aims of Germany, Italy and Japan. At its zenith in 1942 during World War II, the Axis presided over territories that occupied large parts of Europe, North Africa, and East Asia. There were no three-way summit meetings and cooperation and coordination was minimal, with slightly more between Germany and Italy.