By the 22nd century BC, the ancient Sumerian ruler Ur-Nammu had formulated the first law code, which consisted of casuistic statements ("if … then ..."). Around 1760 BC, King Hammurabi further developed Babylonian law, by codifying and inscribing it in stone.