The first hill, where the main fort is, is called Rajagiri. Originally it was known as Kamalagiri as well as Anandagiri. The fort was historically considered most impregnable. It is about in height. Its summit is cut off from communication and is surrounded by a deep, natural chasm that is about wide and deep. To gain entry into the citadel one had to cross the chasm with the help of a small wooden draw bridge. The naturally strong rock where the fortress is located, is further strengthened by the construction of embrasure walls and gateways along all possible shelves and precipitous edges. The citadel is reached by traversing through seven gates. This citadel contains important buildings apart from the living quarters of the royalty, like the stables, granaries, and meeting halls for the public, temples, mosques, shrines and pavilions. Kamalakanni Amman temple is present atop the Rajagiri hills. As per Hindu legend, the presiding deity, Kamalakanni, is believed to be the widow of demon king Acalamaccuran. Draupadi, a Hindu goddess, beheaded the hundred heads of the demon and Kamalakanni is believed to have protests that she would become a widow. Draupadi explains her similarities that she has no sexual relations, though married. This resulted in the ambiguous "kanni" suffix. Ranganathar Temple, bell tower, watch tower, cannon and draw bridge are located atop the hill.