Hazrat Ali (may Allah be pleased with him) said that when the private parts meet, ghusl becomes obligatory.