The origins of yoga have been speculated to date back to pre-Vedic Indian traditions; it is mentioned in the Rigveda,[note 1] but most likely developed around the sixth and fifth centuries BCE, in ancient India's ascetic and śramaṇa movements.[note 2] The chronology of earliest texts describing yoga-practices is unclear, varyingly credited to Upanishads. The Yoga Sutras of Patanjali date from the first half of the 1st millennium CE, but only gained prominence in the West in the 20th century. Hatha yoga texts emerged sometimes between the 9th and 11th century with origins in tantra.
Description of an early form of yoga called nirodhayoga (yoga of cessation) is contained in the Mokshadharma section of the 12th chapter (Shanti Parva) of the Mahabharata (third century BCE). Nirodhayoga emphasizes progressive withdrawal from the contents of empirical consciousness such as thoughts, sensations etc. until purusha (Self) is realized. Terms like vichara (subtle reflection), viveka (discrimination) and others which are similar to Patanjali's terminology are mentioned, but not described. There is no uniform goal of yoga mentioned in the Mahabharata. Separation of self from matter, perceiving Brahman everywhere, entering into Brahman etc. are all described as goals of yoga. Samkhya and yoga are conflated together and some verses describe them as being identical. Mokshadharma also describes an early practice of elemental meditation. Mahabharata defines the purpose of yoga as the experience of uniting the individual ātman with the universal Brahman that pervades all things.
During the period between the Mauryan and the Gupta eras (c. 200 BCE–500 CE) the Indic traditions of Hinduism, Buddhism and Jainism were taking form and coherent systems of yoga began to emerge. This period witnessed many new texts from these traditions discussing and systematically compiling yoga methods and practices. Some key works of this era include the Yoga Sūtras of Patañjali, the Yoga-Yājñavalkya, the Yogācārabhūmi-Śāstra and the Visuddhimagga.
In 2009, the Council of Ulemas, an Islamic body in Indonesia, passed a fatwa banning yoga on the grounds that it contains Hindu elements. These fatwas have, in turn, been criticized by Darul Uloom Deoband, a Deobandi Islamic seminary in India. Similar fatwas banning yoga, for its link to Hinduism, were issued by the Grand Mufti Ali Gomaa in Egypt in 2004, and by Islamic clerics in Singapore earlier.
To combat steroid use and in the hopes of becoming a member of the IOC, the IFBB introduced doping tests for both steroids and other banned substances. Although doping tests occurred, the majority of professional bodybuilders still used anabolic steroids for competition. During the 1970s, the use of anabolic steroids was openly discussed, partly due to the fact they were legal. In the Anabolic Steroid Control Act of 1990, U.S. Congress placed anabolic steroids into Schedule III of the Controlled Substances Act (CSA). In Canada, steroids are listed under Schedule IV of the Controlled Drugs and Substances Act, enacted by the federal Parliament in 1996.
Vajrayana is also known as Tantric Buddhism and Tantrayāna. Its texts were compiled starting with 7th century and Tibetan translations were completed in 8th century CE. These tantra yoga texts were the main source of Buddhist knowledge that was imported into Tibet. They were later translated into Chinese and other Asian languages, helping spread ideas of Tantric Buddhism. The Buddhist text Hevajra Tantra and Caryāgiti introduced hierarchies of chakras. Yoga is a significant practice in Tantric Buddhism.