What was the purpose of the Code of Hammurabi in the ancient civilization of Babylon? It was the code of archaeological technique. It was the code of battle and warfare. It was the code of writing on clay tablets. It was the code of law and governance.