According to Geoffrey Samuel, our "best evidence to date" suggests that yogic practices "developed in the same ascetic circles as the early śramaṇa movements (Buddhists, Jainas and Ajivikas), probably in around the sixth and fifth centuries BCE." This occurred during what is called the ‘Second Urbanisation’ period. According to Mallinson and Singleton, these traditions were the first to use psychophysical techniques, mainly known as dhyana and tapas. but later described as yoga, to strive for the goal of liberation (moksha, nirvana) from samsara (the round of rebirth).
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.