The Ajanta Caves were carved in the 2nd century BC out of a horseshoe-shaped cliff along the Waghora River. They were used by Buddhist monks as prayer halls (chaitya grihas) and monasteries (viharas) for about nine centuries, then abruptly abandoned. They fell into oblivion until they were rediscovered in 1819.