Jain yoga has been a central practice in Jainism. Jain spirituality is based on a strict code of nonviolence or ahimsa (which includes vegetarianism), almsgiving (dana), right faith in the three jewels, the practice of austerities (tapas) such as fasting, and yogic practices. Jain yoga aims at the liberation and purification of the self (atma) or soul (jiva) from the forces of karma, which keep all souls bound to the cycle of transmigration. Like Yoga and Sankhya, Jainism believes in a multiplicity of individual souls which bound by their individual karma. Only through the reduction of karmic influxes and the exhaustion of one's collected karma can a soul become purified and released, at which point one becomes an omniscient being who has reaches "absolute knowledge" (kevala jnana).
Alexander the Great reached India in the 4th century BCE. Along with his army, he took Greek academics with him who later wrote memoirs about geography, people and customs they saw. One of Alexander's companion was Onesicritus, quoted in Book 15, Sections 63–65 by Strabo, who describes yogins of India. Onesicritus claims those Indian yogins (Mandanis ) practiced aloofness and "different postures – standing or sitting or lying naked – and motionless".
Ascetic practices, concentration and bodily postures described in the Vedas may have been precursors to yoga. According to Geoffrey Samuel, "Our best evidence to date suggests that [yogic] practices developed in the same ascetic circles as the early sramana movements (Buddhists, Jainas and Ajivikas), probably in around the sixth and fifth centuries BCE."