In summary, although both Confucianism and Legalism were developed in a period of turmoil and both were aimed at the re-unification of the country, the two theories went opposite directions with one advocating for and one against the use of formal laws to achieve social order. What the two theories have in common is their concession of the ultimate authority to the ruler, who remained above and beyond the li or law. It is true that neither theory is ideal in achieving a social order. Nevertheless, both theories have had a significant impact on the cultural and legal development in China, and their influence remains visible today.
In summary, although both Confucianism and Legalism were developed in a period of turmoil and both were aimed at the re-unification of the country, the two theories went opposite directions with one advocating for and one against the use of formal laws to achieve social order. What the two theories have in common is their concession of the ultimate authority to the ruler who remained above and beyond the li or law. It is true that neither theory is ideal in achieving a social order. Nevertheless both theories have had a significant impact on the cultural and legal development in China, and their influence remains visible today