The history of Taoism stretches throughout Chinese history. Originating in prehistoric China, it has exerted a powerful influence over Chinese culture throughout the ages. Taoism evolved in response to changing times, with its doctrine and associated practices being revised and refined. The acceptance of Taoism by the ruling class has waxed and waned, alternately enjoying periods of favor and rejection. Most recently, Taoism has emerged from a period of suppression and is undergoing a revival in China.
Laozi is traditionally regarded as the founder of Taoist religion and is closely associated in this context with "original", or "primordial", Taoism. Whether he actually existed is disputed, however, the work attributed to him - the Daodejing - is dated to the 4th or 3rd century BC. However, Taoism clearly predates Laozi (Lao Tzu) as he refers to "The Tao masters of antiquity" in Chapter 15 of the Daodejing (Tao Te Ching). Moreover, the Yellow Emperor, Huangdi (2697–2597 BCE) Is often associated with origin of the Tao.
Sinologist Isabelle Robinet identifies four components in the emergence of Taoism:
Some elements of Taoism may be traced to prehistoric folk religions in China that later coalesced into a Taoist tradition. In particular, many Taoist practices drew from the Warring-States-era phenomena of the Wu (shaman) (connected to the "shamanism" of Southern China) and the Fangshi (which probably derived from the "archivist-soothsayers of antiquity, one of whom supposedly was Laozi himself"), even though later Taoists insisted that this was not the case. Both terms were used to designate individuals dedicated to "... magic, medicine, divination,... methods of longevity and to ecstatic wanderings" as well as exorcism; in the case of the wu, "shamans" or "sorcerers" is often used as a translation. The fangshi were philosophically close to the School of Yin-Yang, and relied much on astrological and calendrical speculations in their divinatory activities.
The term Daojia (usually translated as "philosophical Taoism") was coined during the Han Dynasty. In Sima Qian's history (chapter 63) it refers to immortals; in Liu Xiang it refers to Laozi and Zhuangzi (Daojiao came to be applied to the religious movements in later times). The earliest commentary on the Dao De Jing is that of Heshang Gong (the "Riverside Master"), a legendary figure depicted as a teacher to the Han emperor. In the early Han Dynasty, the Tao came to be associated with or conflated with the Xian Di Emperor. A major text from the Huang-Lao movement would be the Huainanzi, which interprets earlier works of the Taoist canon in light of the quest for immortality.