In the late Tang, Confucianism developed in response to Buddhism and Taoism and was reformulated as Neo-Confucianism.