The Kassites first appeared during the reign of Samsu-iluna of the First Babylonian dynasty and after being defeated by Babylon, moved to control the city-state of Mari. Some undetermined amount of time after the fall of Babylon, the Kassites established a new Babylonian dynasty. The Babylonian king list identifies 36 kings reigning 576 years, however, only about 18 names are legible. A few more were identified by inscriptions. There is some confusion in the middle part of the dynasty because of conflicts between the Synchronistic Chronicle and Chronicle P. The later kings are well attested from "kudurru" steles. Relative dating is from sychronisms with Egypt, Assyria and the Hittites. The dynasty ends with the defeat of Enlil-nadin-ahi by Elam.