Original: According to the legal theory followed by the Western Allies , the occupation of most of Germany ended in 1949 with the declaration of the Federal Republic of Germany ( 23 May 1949 ) and the German Democratic Republic ( 7 October 1949 ) .
Simplified: According to the western allies , the occupation of most of Germany ended in 1949 when the Federal Republic of Germany and the German Democratic Republic were set up .