Vihara, early type of Buddhist?monastery?consisting of an open court surrounded by open cells accessible through an entrance porch. The?viharas in?India?were originally constructed to shelter the monks during the rainy season, when it became difficult for them to lead the wanderer?s life. They took on a sacred character when small stupas (housing sacred relics) and images of the?Buddha?were installed in the central court.