During the Tang Dynasty in China, Buddhism entered through the Mahayana strand and formed monasteries that provided social benefits but called for celibacy. Chan Buddhism developed with two approaches - koan study or silent illumination. Koans posed paradoxical questions to induce enlightenment. The theory of double truth acknowledged existence and non-existence. Confucianism was influenced by Buddhism but argued for moral standards and social harmony. Daoism felt overshadowed by Buddhism's popularity and attempted to copy aspects of it but ultimately embraced a more mystical approach.