Religious practices were not boxed out separately in ancient India. Evidence shows that Buddhism, Jainism, and Hinduism were followed by family members; some may have their preference but multiple practices within larger families. Particularly close relationships are observed in inscriptions mentioning temples of all three religions. Buddhism was popular until the 12th century during which the Buddhist monasteries were attacked and burned by invading Islamic raiders. Buddhism found it difficult to survive without its core the monastic establishments.