Hello there!
I see that you are new, so WELCOME!
I think the answer you are looking for is:
During the Qin dynasty, Confucianism—along with all other non-Legalist philosophies, such as Daoism—were suppressed by the First Emperor; early Han dynasty emperors did the same. Legalism denounced the feudal system and encouraged severe punishments, particularly when the emperor was disobeyed
Hope this help you!
Welcome to the fam!
~CoCo