Sangam literature is the earliest example of Tamil literature, composed during the early centuries of the Common Era. The Nayanars and Alvars went from place to place composing exquisite poems in the praise of deities that were enshrined in the villages they visited, and set these poems to music.