Wearing a hijab is an obligation for Muslim women, but there are some circumstances in which it can be removed. These include prayer, being around immediate family members, breastfeeding during an emergency, travel, and sports or physical education participation.