Conversation so far:
why did the allies occupy germany after ww2
Understanding Germany would eventually be reunified, the Allies agreed to share responsibility of administering Germany and its capital, Berlin, and each took responsibility for a part of the defeated nation.“
Was Germany eventually reunited
After the Allied Powers agreed to share the responsibility of administering Germany and its capital, this arrangement  evolved into the division of Germany as a Western and an Eastern sector.
What countries had part in the decision to keep Germany devided
After Germany's defeat in the Second World War, the four main allies in Europe - the United States, Great Britain, the Soviet Union, and France jointly occupied the German state.

Question: When did the occupation end
Self-contained rewrite: When did the occupation of Germany by the Allied countries end