They used Pachacamac primarily as a religious site for the veneration of the Pacha Kamaq, the creator god. Limas were the first settlers, followed by the Huaris, and finally the Ichmas and then overtaken by the Inca Empire. The Ichma joined the Incan Empire, which used Pachacamac as an important administrative center. The Inca maintained it as a religious shrine and allowed the Pachacamac priests to continue functioning independently of the Inca priesthood. This included the oracle, whom the Inca presumably consulted. The Inca built five additional buildings, including a temple to the sun on the main square. The Temple of the Moon is where they used to host many young women (8 to 10 years old) whom were brought to Pachacamac and stayed in the Temple of the Moon or Mamacona. There, widow women would teach the young women how to take care of men and to sew, keep house, and perform other womanly duties.