The intent of written law codes, such as Hammurabi's Code, is best described by option D: to create more fairness and equality in the legal system.
Hammurabi's Code was one of the earliest written legal codes and aimed to establish a set of consistent laws that applied to all citizens, thereby promoting justice and order within society. By clearly outlining various laws and corresponding penalties, it sought to provide a framework that would reduce arbitrary judgment and ensure accountability. While the code did reflect social hierarchies, its overall purpose was to create a more structured legal system.