The Pancharama Kshetras or the Pancharamas) are five ancient Hindu temples of Lord Shiva situated in Andhra Pradesh. The Sivalingas at these temples are made from a single Sivalinga.
As per the legend, this Sivalinga was owned by the Rakshasa King Tarakasura. No one could win over him due to the power of this Sivalinga. In the war between deities and Taraka, Kumara Swamy and Taraka were face to face. Kumara Swamy used his Sakthi aayudha to kíll Taraka. By the power of Sakti aayudha the body of Taraka was torn into pieces. But to the astonishment of Lord Kumara Swamy all the pieces reunited to give rise to Taraka. Kumara Swamy repeatedly broke the body into pieces and it was re-unified again.
Lord Kumara Swamy was confused and was in an embarrassed state then Lord Sriman Narayana appeared before him and said “Kumara! Don’t get depressed, without breaking the Shiva lingham worn by the asura you can’t kíll him” you should first break the Shiva lingam into pieces, then only you can kíll Taraka Lord Vishnu also said that after breaking, the shiva lingham also will try to unite. To prevent the Linga from uniting all the pieces should be fixed in the place where they fall by worshipping them and building temples on them.
By taking the word of Lord Vishnu, Lord Kumara Swamy used his Aagneasthra (weapon of fire) to break the Shiva lingham worn by Taraka. The Shiva lingham broke into five pieces and was trying to unite by making Omkara nada (Chanting Om). Then Surya deva by the order of Lord Vishnu fixed those five pieces of Shiva linga and worshipped them by building temples over them. By the formation of temple the pieces stopped their movement and were famous of panchrama kshetras. All the five Shivalinga in these five places have got scaly marking as them which are believed to be formed by the power of Agneyasthra used by Lord Kumara Swamy.