Hammurabi's code was important because his kingdom needed order so that everyone could live together. These written laws were the largest set of laws at the time. His laws included an organized court system with judges, which influenced our court system today.