Those who found themselves wronged could lay their complaints before Ra or Ptah with the faith that he would see that justice was done; for he was deemed to be a fair and incorruptible judge.
The Legal Framework of Ancient Egypt | A Story of Ma’at

Those who found themselves wronged could lay their complaints before Ra or Ptah with the faith that he would see that justice was done; for he was deemed to be a fair and incorruptible judge.
Criticisms notwithstanding, the fact remains that our modern legal system is not too different from Hammurabi’s time and is even considered to be a continuation of it.
We put them away in these places even though they have committed no crimes.
A perennial divide ensued among those who believed that the role of the government is to improve people's lives and those who believed that its main purpose was to ensure liberty for its citizens.