The Mystery of Ancient Temples: Who Built Them and Why?