The Vajrayana emerged out of Mahayana Buddhism, and has always been closely related to that tradition. Tantric elements from both Buddhism and Hinduism have been incorporated into the Vajrayana, as have indigenous religious practices in countries such as Tibet and Japan.