They preached ardent love of Shiva or Vishnu as the path to salvation. They drew upon the ideals of love and heroism as found in the Sangam literature. These Nayanars and Alvars went from place to place. They composed exquisite poems in praise of the deities in the villages which they visited, and set them to music