Australian Army units were gradually withdrawn from the Mediterranean and Europe following the outbreak of war with Japan. However, Royal Australian Air Force and Royal Australian Navy units and personnel continued to take part in the war against Germany and Italy. From 1942 until early 1944, Australian forces played a key role in the Pacific War, making up the majority of Allied strength throughout much of the fighting in the South West Pacific theatre. While the military was largely relegated to subsidiary fronts from mid-1944, it continued offensive operations against the Japanese until the war ended.