As early as the third century BC, caves like the Lomas Rishi and Sudama were excavated, modeled after the simple dwellings of ascetics.