What Makes Ghusl Obligatory?
Question

What are the things that make Ghusl obligatory?
Praise be to Allah.“The things that make Ghusl obligatory are six things. If one of them happens then the Muslim has to do Ghusl . 

Emission of Maniy (semen) from its exit in the male or female, which happens either when one is awake or when one is asleep. If it is emitted when one is awake, there is the condition that one feels pleasure when it is emitted. If it is emitted without pleasure, then Ghusl is not required, such as if it is emitted as the result of sickness. If it is emitted when one is asleep, this is what is called Ihtilam (erotic dream) and Ghusl is required in all cases because he was not aware (of whether there were feelings of pleasure or not) and he may not experience feelings of pleasure. If a sleeper wakes up and finds traces of Maniy, then he must do Ghusl. If he has an erotic dream but no Maniy comes out of him, and he does not find any trace of it, then he does not have to do Ghusl . 
Penetration of the penis into the vagina, even if no ejaculation takes place, because of the Hadith narrated by Muslim and others from the Prophet (peace and blessings of Allah be upon him): “When a man sits between the four parts (arms and legs of his wife) and has intercourse with her, then Ghusl is obligatory.” So Ghusl is required of both parties involved by mere virtue of penetration having taken place, even if no ejaculation takes place, because of this Hadith and because there is scholarly consensus on this point. 
According to some scholars, Ghusl is required when a non-Muslim becomes Muslim, because the Prophet (peace and blessings of Allah be upon him) told some of those who became Muslim to do Ghusl. Many scholars think that it is recommended, not obligatory, for a non-Muslim who becomes Muslim to do Ghusl because it is not narrated that the Prophet (peace and blessings of Allah be upon him) told everyone who became Muslim to do that. So it may be understood that it is recommended, so as to reconcile the evidence. 
Death – the deceased person must be washed, except for the martyr who falls in battle, who is not to be washed. 
and 6 – Menses and postpartum bleeding, because the Prophet (peace and blessings of Allah be upon him) said: “When your menses ends , then do Ghusl and pray.” And Allah says (interpretation of the meaning): “And when they have purified themselves” [Al-Baqarah 2:222], referring to menses – they should purify themselves by doing Ghusl after their menses ends .” (Al-Mulakhkhas Al-Fiqhi by Shaykh Salih Al-Fawzan (may Allah preserve him) 

And Allah knows best.