The Berlin Wall & East Side Gallery

By 1961, 3.5 million East Germans, about 20% of the population, fled to the west. In order to prevent the "brain drain", of educated professionals and skilled workers, the government put up a concrete barrier that cut off East Germany from West Berlin.

The DDR's "Anti-Fascist Protection Wall" had one purpose and it wasn't to protect the East German capital from the West. It was to keep its citizens from escaping.

The wall ran from for 156 km (97 miles) around West Berlin and for 43 km (27) which actually divided West and East Berlin. The wall was built slightly inside of East Germany territory so that it did not encroach on West Berlin.

Here's a video that shows how the city was divided.