According to the Author, the function of a city is to:
Answer: D
The entire passage says about this so option D is correct answer.