Answer: To protect Berlin from the west.
Step-by-step explanation:
The Berlin Wall was built by the German Democratic Republic during the Cold War to prevent its population from escaping Soviet-controlled East Berlin to West Berlin, which was controlled by the major Western Allies.