Quarries allow you to mine more stone once all loose rock on the surface of the map has been mined out. The quarry will eventually run out of rock. You can remove the quarry building but the whole is permanent. The quarry can facilitate a max of 15 citizens. Citizens working in the quarry risk death due to being crushed by a rock.