Mainly there was the presence of Confucianism and Taoism, but definitely some very heavy elements of Buddhism as well. Shamanism was for the most part a rural religion during the time of the construction, but started to gain a lot of followers through the years.