Niyama (Sanskrit: नियम) literally means positive duties or observances. In Indian traditions, particularly Yoga, niyamas and its complement, Yamas, are recommended activities and habits for healthy living, spiritual enlightenment and liberated state of existence. It has multiple meanings depending on context in Hinduism. In Buddhism, the term extends to the determinations of nature, as in the Buddhist niyama dhammas.
Virtues are extensively discussed in various ancient and medieval era texts of Hinduism. In its Yoga school, they are described in first two of eight limbs (steps, branches, components). The first limb is called yamas, which include virtuous self-restraints (the "don'ts"). The second limb is called niyamas which include virtuous habits, behaviors and observances (the "dos"). These virtues and ethical premises are considered in Hinduism as necessary for an individual to achieve a self-realized, enlightened, liberated state of existence (moksha).
In Patanjali's Yoga Sutras, the Niyamas are the second limb of the eight limbs of Yoga. Sadhana Pada Verse 32 lists the niyamas as:
In the diverse traditions and historical debate within Hinduism, some texts suggest a different and expanded list of niyamas. For example, the Shandilya and Varuha Upanishads, the Hatha Yoga Pradipika, verses 552 to 557 in Book 3 of the Tirumandhiram of Tirumular suggest ten niyamas, in the sense of positive duties, desirable behaviors and discipline. The Hatha Yoga Pradipika lists the ten niyamas in the following order, in verse 1.18,
Some texts replace the last niyama of Huta with Vrata. The niyama of Vrata means making and keeping one's vows (resolutions), which may be pious observances. For example, a promise to fast and visit a pilgrimage site is a form of Vrata. The education process in ancient India, where Vedas and Upanishads were memorized and transmitted across generations without ever being written down, required a series of Vrata niyamas over a number of years.