Why Was the Berlin Wall Built?

The Berlin Wall, a stark symbol of the Cold War, physically and ideologically divided the city of Berlin from 1961 to 1989. But why was the wall built in Berlin?…