Brahmacharya … means to stay in conduct within one's own Self.
… brahmacharya implies, among other things, the mandatory renunciation of sex and marriage.
https://en.wikipedia.org/wiki/Brahmacharya
… Brahmacarya (celibacy) … – these are roots of Dharma …
In the Shastric Hindu law, marriage has been regarded as one of the essential sanakaras (sacrament for every Hindu). Every Hindu must marry. “To be mothers were woman created and to be fathers men.” The Veda ordains that “Dharma must be practiced by man together with his wife and offspring”. “He is only perfect who consists of his wife and offspring.” “Those who have wives can fulfill their obligations in this world; those who have wives truly have a family life; those who have wives can be happy; those who have wives can have a full life.” For a Hindu marriage is essential, not only for begetting a son in order to discharge his debt to the ancestors, but also for performance of other religious and spiritual duties.
Amongst the most prominent Hindu wedding ritual is 'seven vows or Saptapadi which are performed along with Mangal Pheras (walking around the sacred fire). … couple stand equally and promises each other lifelong companionship.