When the Inca Empire conquered the area they constructed a large complex on a mountain ridge overlooking where the current town is now located. The consensus is that it was constructed by the Inca emperor Pachacuti (1438–1471/1472) no earlier than 1440. The consensus among many scholars (among them Kim MacQuarrie) is that Pachacuti constructed it as multi-purpose residence, citadel, observatory and religious site. This this role it would support his panaca (family and descendants), provide a secluded royal retreat located well away from Cusco where the he and the nobility could relax between military campaigns, undertake ritual and religious ceremonies, serve as a refuge in times of danger as well as commemorating his victories over the Cuyos. Despite its size and proximity to Cusco the Inca complex is not mentioned by any of the Spanish chroniclers.