Marduk was the most powerful god in the pantheon of the city of Babylon. Originally a minor agricultural deity, Marduk owed his promotion to the political power gained by Babylon under the Hammurabi (18th century BCE). Written in the late 2nd millennium BCE, the creation epic recounts how Marduk became king of the gods after defeating the primordial goddess Tiamat.