Hammurabi is not a dynasty in classical China. Hammurabi was the sixth king of the First Dynasty of Babylon in Mesopotamia (modern-day Iraq) during the 18th century BCE. He is known for creating one of the earliest surviving legal codes, the Code of Hammurabi.