Daozang (Chinese: 道藏; pinyin: Dàozàng; Wade-Giles: Tao Tsang), meaning "Treasury of Dao" or "Daoist Canon", consists of around 1400 texts that were collected circa C.E. 400 (after the Dao De Jing and Zhuang Zi which are the core Daoist texts). They were collected by Daoist monks of the period in an attempt to bring together all of the teachings of Daoism, including all the commentaries and expositions of the various masters from the original teachings found in the Dao De Jing and Zhuangzi. It was split into Three Grottoes, which mirrors the Buddhist Tripitaka (three baskets) division. These three divisions were based on the main focus of Daoism in Southern China during the time it was made, namely; meditation, ritual, and exorcism.
These Three Grottoes were used as levels for the initiation of Daoist masters, from lowest (exorcism) to highest (meditation).
As well as the Three Grottoes there were Four Supplements that were added to the Canon circa C.E. 500. These were mainly taken from older core Daoist texts (e.g. ) apart from one which was taken from an already established and separate philosophy known as Tianshi Dao (Way of the Heavenly Masters).
Although the above can give the appearance that the Canon is highly organized, this is far from the truth. Although the present-day Canon does preserve the core divisions, there are substantial forks in the arrangement due to the later addition of commentaries, revelations and texts elaborating upon the core divisions.
Read more about Daozang: Timeline