China has long been a cradle and host to a variety of the most enduring religio-philosophical traditions of the world. Confucianism and Taoism, later joined by Buddhism, constitute the "three teachings" that have shaped Chinese culture. There are no clear boundaries between these intertwined religious systems, which do not claim to be exclusive, and elements of each enrich popular or folk religion. The emperors of China claimed the Mandate of Heaven and participated in Chinese religious practices. In the early 20th century, reform-minded officials and intellectuals attacked all religions as "superstitious", and since 1949, China has been governed by the Communist Party of China, an atheist institution that prohibits party members from practising religion while in office. In the culmination of a series of campaigns against religions already underway since the late 19th century, the Cultural Revolution against old habits, ideas, customs and culture, lasting from 1966 to 1967, destroyed or forced them underground.:138 Under following leaders, religious organisations were given more autonomy. The government formally recognises five religions: Buddhism, Taoism, Islam, Protestantism, and Catholicism (though the Chinese Catholic Church is independent of the Catholic Church in Rome). In the early twenty-first century there has been increasing official recognition of Confucianism and Chinese folk religion as part of China's cultural inheritance.
Folk or popular religion, the most widespread system of beliefs and practices, has evolved and adapted since at least the Shang and Zhou dynasties in the second millennium BCE. Fundamental elements of a theology and spiritual explanation for the nature of the universe harken back to this period and were further elaborated in the Axial Age. Basically, Chinese religion involves allegiance to the shen, often translated as "spirits", defining a variety of gods and immortals. These may be deities of the natural environment or ancestral principles of human groups, concepts of civility, culture heroes, many of whom feature in Chinese mythology and history. Confucian philosophy and religious practice began their long evolution during the later Zhou; Taoist institutionalised religions developed by the Han dynasty; Chinese Buddhism became widely popular by the Tang dynasty, and in response Confucian thinkers developed Neo-Confucian philosophies; and popular movements of salvation and local cults thrived.
Christianity and Islam arrived in China in the 7th century. Christianity did not take root until it was reintroduced in the 16th century by Jesuit missionaries. In the early 20th century Christian communities grew, but after 1949, foreign missionaries were expelled, and churches brought under government-controlled institutions. After the late 1970s, religious freedoms for Christians improved and new Chinese groups emerged.:508, 532 China is also often considered a home to humanist and secularist, this-worldly thought beginning in the time of Confucius.
Because many, perhaps most, Han Chinese do not consider their spiritual beliefs and practices to be a "religion" and in any case do not feel that they must practise any one of them exclusively, it is difficult to gather clear and reliable statistics. According to scholarly opinion, "the great majority of China's population of 1.3+ billion" takes part in Chinese cosmological religion, its rituals and festivals of the lunar calendar, without belonging to any institutional teaching. National surveys conducted in the early 21st century estimated that some 80% of the population of China, that is more than a billion people, practise some kind of Chinese folk religion or Taoism; 10–16% are Buddhists; 2–3% are Christians; and 1–2% are Muslims. Folk religious movements of salvation constitute 2–3% to 13% of the population, while many in the intellectual class adhere to Confucianism as a religious identity. In addition, ethnic minority groups practise distinctive religions, including Tibetan Buddhism, and Islam among the Hui and Uyghur peoples.
Prior to the formation of Chinese civilisation and the spread of world religions in the region known today as East Asia (which includes the territorial boundaries of modern-day China), local tribes shared animistic, shamanic and totemic worldviews. Mediatory individuals such as shamans communicated prayers, sacrifices or offerings directly to the spiritual world, a heritage that survives in some modern forms of Chinese religion.