Aristotle, an outstanding thinker in ancient Greece, believes that justice refers to a virtue produced by people in social relations, and law is the embodiment of justice. The quality of law is completely based on justice, and the fundamental purpose of legislation is to promote the realization of justice. Therefore, we should use legal means to control people, educate people and cultivate people's concept of justice and benefit. Law aims at justice, which is of great significance to people and law. Justice is not only a theoretical problem, but also a problem with strong practical significance. To ensure that the value of citizens' freedom is fully reflected, we should pay attention to the dialectical method of combining internal and external causes. At present, China is in the process of stepping into the legal system. Although there are still many defects in all aspects, as long as we attach importance to the value orientation of natural law in the legislative, administrative and judicial enforcement departments and adhere to the people-oriented Scientific Outlook on Development, we firmly believe that China will eventually become a democratic, free and just socialist country in the near future.