Nobody quite knows what, exactly, the purpose of the ziggurat is. King Kalak claims that it will somehow protect the city from the Dragon, but how it could possibly do that is anyone's guess.