Brahmacharya (/ˌbrɑːməˈtʃɑːrjə/; Sanskrit: brahmacarya Devanagari: ब्रह्मचर्य) is the concept within Indian religions that literally means "conduct consistent with Brahman" or "on the path of Brahman". Brahmacharya, a discipline of controlling the senses, is seen as a way to liberation. Though sexual restraint is a part of brahmacharya, brahmacharya encompasses all striving toward a passionless state.
In one context, brahmacharya is the first of four ashrama (age-based stages) of a human life. The brahmacharya (bachelor student) stage of life – from childhood up to twenty-five years of age – was focused on education and included the practice of celibacy. In this context, it connotes chastity during the student stage of life for the purposes of learning from a guru (teacher), and during later stages of life for the purposes of attaining spiritual liberation or moksha.