The Sumerians developed a polytheistic religion that was later followed by other civilizations such as the Babylonian. According to them, people had been created to meet the needs of the gods. You have all the information in: «Ancient Mesopotamia: Most Important Civilizations«.
You have all the information in: "Ancient Mesopotamia: Most Important Civilizations".