Homes and passageways were carved straight down into the rock, large enough to hold 5,000 people in case of an attack.