Confucianism replaced Legalism as the main ruling doctrine during the Han Dynasty.
Han Dynasty was the era during which Confucianism replaced Legalism as the main ruling doctrine in China. While Legalism was prevalent during the Qin Dynasty, the Han Dynasty, particularly under Emperor Wu, embraced Confucianism, making it the official imperial philosophy and emphasizing Confucian teachings in education and government policies.
https://brainly.com/question/5600435