In Jainism fasting is done as a penance. Fasting also purifies the body and mind and reminds the practitioner of Mahavira's sacrifice and penance, as Mahavira spent a lot of time fasting.