The ziggurats were built as temples for Sumerian gods.
A massive building known as a ziggurat stood in the middle of each significant city in Mesopotamia. To pay homage to the city's chief deity, the ziggurat was constructed. The Sumerians began the practice of constructing ziggurats, but other Mesopotamian civilizations like the Akkadians, the Babylonians, and the Assyrians followed suit.
The city's principal deity was worshipped in the ziggurat. Every Mesopotamian city had a chief deity. Ishtar was the goddess of Nineveh, Enki was the deity of Eridu, and Murdock was the god of Babylon. The ziggurat was evidence that this god was worshipped in the city. There was a shrine to the deity at the summit of the ziggurat.
Learn more about ziggurat, here
https://brainly.com/question/984450
#SPJ9