Derinkuyu is a large multi-level underground city with the capacity to house 20,000 people. It served as a refuge for locals during raids from foreign armies. It has at least eight levels with a depth of 85 m (280 ft.) and contained living quarters, food stores, kitchens, stables, churches, wine and oil presses, ventilation shafts, wells, and a religious school.