The Inca built stone walls in Cusco for defensive purposes and to showcase their engineering skills. The walls also served as foundations for important buildings and temples in the city. The precise fitting of stones without mortar was a signature Inca construction technique known as "ashlar masonry."