After the end of World War II in Europe , what remained of pre-war Germany west of the Oder-Neisse line was divided into four occupation zones ( as per the Potsdam Agreement ) , each one controlled by one of the four occupying Allied powers : the United States , the United Kingdom , France and the Soviet Union .
After World War II ended , Germany was divided into four zones , one zone for each of the main Allied countries : France , the United Kingdom , the United States and the Soviet Union .