By keeping the ruler from making up new laws that were not referenced in the Code. Hammurabi's code has a great deal to do with Egypt.Hammurabi's Code is among the most established translatable compositions. It comprises of 282 laws, most concerning discipline.
Every law considers the culprit's status. The code additionally incorporates the most punctual known development laws, intended to adjust the motivators of developer and tenant to guarantee that manufacturers made safe homes.
c. by punishing a ruler for trying to change the Code.
Hammurabi's Code is believed to be the first set of written laws ever created. This code was developed in Mesopotamia, by King Hammurabi, ca. 1772 BCE. The code contained 282 laws that regulated behaviour and advanced the rule of law in Mesopotamia. The code also prevented a single ruler from imposing his will on the people, as the ruler would be punished for trying to change the code.