Vihara (विहार, vihāra) is the Sanskrit and Pali term for a Buddhist monastery. It originally meant "a secluded place in which to walk", and referred to "dwellings" or "refuges" used by wandering monks during the rainy season.
The northern Indian state of Bihar derives its name from the word "vihara", due to the abundance of Buddhist monasteries in that area. The word "vihara" has also been borrowed in Malay where it is spelled "biara," and denotes a monastery or other non-Muslim place of worship. In Thailand and China (called jingshe; Chinese: 精舎), "vihara" has a narrower meaning, and designates a small shrine hall or retreat house. It is called a "Wihan" (วิหาร) in Thai, and a "Vihear" in Khmer. In Burmese, wihara (ဝိဟာရ, IPA: [wḭhəɹa̰]), means "monastery," but the native Burmese word kyaung (ကျောင်း, IPA: [tɕáʊɴ]) is preferred. Monks wandering from place to place preaching and seeking alms (money.good.or other donations given to the poor or needy)we're arranged to stay together in the sangha
In the early decades of Buddhism the wandering monks of the Sangha, dedicated to asceticism and the monastic life, had no fixed abode. During the rainy season (cf. vassa) they stayed in temporary shelters. These dwellings were simple wooden constructions or thatched bamboo huts. However, as it was considered an act of merit not only to feed a monk but also to shelter him, sumptuous monasteries were created by rich lay devotees (Mitra 1971). They were located near settlements, close enough for begging alms from the population but with enough seclusion to not disturb meditation.