There are many types of fasting. Each type aims to achieve something. Some fasting would aim to cut back on your body weight, others are for spirituality, cutting back on something for health reasons and so on and so forth.
Fasting: Types and Benefits
