Sanyuanjie originated from the Taoist world view in China. Taoism believes that the three basic elements that produce everything in the world are heaven, earth and water, which are called "three elements", and the three elements are called "officials", that is, segments in the process of time and space flow, so the Shangyuan Festival, Zhongyuan Festival and Xiayuan Festival are collectively called three elements.
Blessed by Emperor Ziwei, the heavenly official, it was born on the 15th day of the first month, which is called Shangyuan Festival, or Lantern Festival. Emperor Qing Xu, a local official, pardoned sins, and was born on July 15th, which is called the Mid-Yuan Festival, also known as the Ghost Festival or the "Orchid Festival". Emperor Shuiguan Dongyin was born on October 15th, and it is called the Next Yuan Festival, which is the day when Shuiguan Jieyu Valley Emperor Jieyu, which is commonly called the day.