hammurabi became king of babylon in around 1792 bc, when his father sin-muballit abdicated. babylon was one of many small independent cities in ancient mesopotamia. these cities often fought each other for control of land. babylon was already one of the more powerful cities when hammurabi became king. earlier kings of babylon had taken over the nearby city-states of borsippa, kish, and sippar.