The ghusl, accompanied by a statement of intent, must be performed whenever a state of major ritual impurity has been incurred: following sexual intercourse, seminal emission, menstruation, or childbirth.