Monasteries are communities of monks/nuns. They are religious communities separated from the rest of society.
A monastery is a facility which houses a religious community of monks or nuns. Generally, a monastery is designed to be self contained, so that the religious adherents inside could potentially live out their lives entirely inside monastery walls. By choosing to live in seclusion, the inhabitants of a monastery can explore the nature of faith either alone or together, and these facilities often become repositories of religious knowledge and contemplation.
A community of people OR The place of residence occupied by such people. I hope this help u for whatever u r finding it for.