The fast is meant to allow Muslims to seek nearness and to look for forgiveness from Allah, to express their gratitude to and dependence on him, atone for their past sins, and to remind them of the needy. During Ramadan, Muslims are also expected to put more effort into following the teachings of Islam by refraining from violence, anger, envy, greed, lust, profane language, gossip and to try to get along with fellow Muslims better. In addition, all obscene and irreligious sights and sounds are to be avoided.
Fasting during Ramadan is obligatory, but exceptions are made for several groups for whom it would be very dangerous and excessively problematic. These include pre-pubescent children, those with a medical condition such as diabetes, elderly people, and pregnant or breastfeeding women. Observing fasts is not permitted for menstruating women. Other individuals for whom it is considered acceptable not to fast are those who are ill or traveling. Missed fasts usually must be made up for soon afterward, although the exact requirements vary according to circumstance.