The lord of Annamalaiyar Temple is Shiva, This temple is located at the base of Annamalai hills in the city of Thiruvannamalai in Tamil Nadu. It is significant to the Hindu sect of Saivism as one of the temples associated with the five elements, the Pancha Bhoota Stalas, and specifically the element of fire, or Agni. Shiva is worshiped as Annamalaiyar or Arunachaleswarar, and is represented by the lingam, with his idol referred to as Agni lingam. His consort Parvati is depicted as Unnamulai Amman.
As devotee says once Bramha and Thirumal started a debated among themselves so as to ascertain who was the greatest. Lord Siva was asked to be the judge. Lord Siva told them that whoever was able to see his crown and his feet simultaneously would be termed as the greatest. Then lord Siva transformed himself into a Jothi, touching the heaven and earth. Thirumal took the avatar of a wild boar and dug deep into the earth to find Siva’s feet but at last accepted defeat. Bramha took the form of a swan and flew to see the crown of Siva. So Brahma lied, saying he had seen the crow. Siva became angry at the deception and cursed that Bramha should have no temple on earth and that the thazhambu flower should not be used while praying to Lord Siva. The place where Lord Siva stood as a column of fire to eliminate the ego is Thiruvannamalai.