 Jainism came into prominence during the life of its exemplar, Mahavira.Buddhism, based on the teachings of Gautama Buddha, attracted followers from all social classes excepting the middle class; chronicling the life of the Buddha was central to the beginnings of recorded history in India.In an age of increasing urban wealth, both religions held up renunciation as an ideal, and both established long-lasting monastic traditions.