What Were Ziggurats Used for?

Ziggurats were used for worshiping the Gods in the Mesopotamian days. These were also good to use for the Kings. They can be made out of all different types of materials.