The Berlin Wall was built by the East German government in 1961 to seal off East Berlin from part of the city that was occupied by the three main Western powers to prevent mass illegal immigration to the West.