The Nayanars (or Nayanmars; Tamil: நாயன்மார், romanized: Nāyaṉmār, lit. 'hounds of Siva', and later 'teachers of Siva') were a group of 63 saints living in Tamil Nadu during the 6th to 8th centuries CE who were devoted to the Hindu god Shiva. Along with the Alwars, their contemporaries who were devoted to Vishnu, they influenced the Bhakti movement in early medieval South India. The names of the Nayanars were first compiled by Sundarar. The list was expanded by Nambiyandar Nambi during his compilation of material by the poets for the Tirumurai collection, and would include Sundarar himself and Sundarar's parents.
The list of the Nayanars was initially compiled by Sundarar (Sundararmurthi). In his poem Tiruthonda Thogai he sings, in eleven verses, the names of the Nayanar saints up to Karaikkal Ammaiyar, and refers to himself as "the servant of servants". The list did not go into the detail of the lives of the saints, which were described in detail in works such as Tevaram.
In the 10th century, king Raja Raja Chola I collected the volumes of Tevaram after hearing excerpts of the hymns in his court.:50 His priest Nambiyandar Nambi began compiling the hymns into a series of volumes called the Tirumurai. He arranged the hymns of three saint poets Sambandar, Appar and Sundarar as the first seven books which he called the Tevaram. He compiled Manikkavasakar's Tirukovayar and Tiruvasakam as the eighth book, the 28 hymns of nine other saints as the ninth book, the Tirumandiram of Tirumular and 40 hymns by 12 other poets as the tenth book. In the eleventh book, he created the Tirutontanar Tiruvanthathi (also known as Tirutoṇṭar Antādi, lit. Necklace of Verses on the Lord's Servants), which consisted of 89 verses, with a verse devoted to each of the saints. With the addition of Sundarar and his parents to the sequence, this became the canonical list of the 63 saints. In the 12th century, Sekkizhar added a twelfth volume to the Tirumurai called Periya Puranam in which he expands further on the stories of each of 63 Nayanars.
The Nayanars were from various backgrounds, including Channars, Vanniyar, Vellalas, Idayars, Thevars, oilmongers, Brahmins, Washermen, Harijan, and nobles. Along with the twelve Vaishnava Alwars, they are regarded as the important Hindu saints from South India.
Sundarar's original list of Nayanars did not follow any sequence with regards to chronology or importance. However, some groups have since followed an order for arranging their Nayanar temple images according to Sundarar's poem as well as the information from Nambi and Sekkizhar.
The 9th-century poet Manikkavacakar was not counted as one of the 63 Nayanars but his works were part of the eighth volume of the Tirumurai. Although the traditional count of Nayanars is only 63, the Tamil poet-philosopher Valluvar is often counted as the 64th Nayanar and is taken in annual procession by various communities, including the Mylapore and the Tiruchuli communities.