The formations, loyal to the Polish government-in-exile, were first formed in France and its Middle East territories following the defeat and occupation of Poland by Germany and the Soviet Union in September 1939. After the fall of France in June 1940, the formations were recreated in the United Kingdom. Making a large contribution to the war effort, the Polish Armed Forces in the West was composed of army, air and naval forces.