From its beginning Buddhism was a monastic religion. The Buddha's followers who renounced family life formed the sangha, a community living under a shared code of discipline, owning nothing individually and depending on gifts from laypeople. In return for food, robes and land, monks and nuns offered teaching, ritual and the chance to earn religious merit. That exchange between monastery and donor is the engine that carried Buddhism across Asia.
Monasteries became powerful institutions. Kings and merchants endowed them with villages, rice land, laborers and treasure, so that a large monastery worked as an estate, a granary and sometimes a bank. They were also the main schools of their societies. In Theravada lands most boys spent time as novices and learned to read there, and great centers such as Nalanda in India and the monasteries of Srivijaya drew students from as far as China. Along the Silk Roads and the sea lanes, monasteries sheltered travelers and stood at the trading stops where merchants gathered.
Between 1200 and 1450 monasticism followed different paths in different regions. In India it was already in decline, squeezed by the revival of Hinduism and the Bhakti Movement, and Turkic armies destroyed Nalanda and other monasteries around 1200; because Indian Buddhism was concentrated in such institutions, it never recovered. In Sri Lanka and mainland Southeast Asia the opposite occurred. The Sinhala Dynasties, the Pagan Kingdom (Burma), the Sukhothai Kingdom and the later Khmer Empire all built their legitimacy on patronage of the sangha. A righteous king protected and periodically purified the monastic order, and the monks in turn blessed his rule and tied villages to the court. In Pagan, tax-exempt donations to monasteries grew so large that they weakened the crown's revenues.
Monasticism invites comparison with Christian monasteries under the Roman Catholic Church, which were likewise landholders, schools and preservers of texts, and with the Sufi lodges that spread Islam. In China, by contrast, the wealth of monasteries drew attacks from Confucian officials who saw monks as unproductive and unfilial.