Kanakagiri is a town in Karnataka state of India. It was a provincial capital of the Mauryan Empire and later became the capital of the Nayaka dynasty who were the Palegars of the Vijayanagara Empire. It is also the site of the historical site Kanakachalapathi Temple which was built by the Nayakas.