By agreement of the Allies, Berlin was divided into four sectors after the unconditional surrender on May 8, 1945. The allied powers of France, the Soviet Union, the United Kingdom and the United States of America were each granted control of a sector, with permission to station troops there.