In some ways the wall itself was responsible for subsequent overcrowding and disease because people were too frightened to live outside it.
People were afraid to live outside the wall.
a dog is inside playing with a ball