The word "tantra" means "treatise" or "continuum", and is applied to a variety of mystical, occult, medical and scientific works as well as to those which we would now regard as "tantric". Most tantras were written in the late Middle Ages and sprang from Hindu cosmology and Yoga.