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.
Samuel states that Tantrism is a contested concept. Tantra yoga may be described, according to Samuel, as practices in 9th to 10th century Buddhist and Hindu (Saiva, Shakti) texts, which included yogic practices with elaborate deity visualizations using geometrical arrays and drawings (mandala), fierce male and particularly female deities, transgressive life stage related rituals, extensive use of chakras and mantras, and sexual techniques, all aimed to help one's health, long life and liberation.