Short answer
There are two standard answers, depending on what “literary work” means:
- The oldest work in Sanskrit is the Rigveda. It is a collection of 1,028 hymns, commonly dated by scholars to roughly the second half of the second millennium BCE.
- The first work of poetry as literary art (kāvya) is Valmiki’s Rāmāyaṇa. Tradition calls it the ādikāvya (“first poem”) and calls Valmiki the ādikavi (“first poet”).
If a question asks for the first kāvya or the first poem of classical Sanskrit literature, the expected answer is the Ramayana. If it asks for the oldest surviving Sanskrit text, the answer is the Rigveda.
The Rigveda: the oldest Sanskrit text
The Rigveda is the earliest layer of Sanskrit and one of the oldest surviving texts in any Indo-European language. Its hymns are sophisticated poetry, full of metre, metaphor and riddles. In Indian tradition, however, the Veda is not classed as human literature. It is śruti, “what was heard”: revelation received by the seers, not authored by them. That is one reason tradition does not call it the “first poem”. It sits in a different category altogether.
The Rigveda was transmitted orally for many centuries, with extraordinary precision, before it was written down. For its size and structure, see how many hymns are there in the Rigveda.
The Ramayana: the “first poem”
The Valmiki Ramayana is regarded as the first poem composed by a human poet in the classical sense. It is a crafted narrative meant to move its listeners, in the śloka metre that became the standard verse form of the epics. The text itself ends its chapters by calling itself the ādikāvya.
The story of the first shloka
The opening book tells how the first verse came into being. Valmiki was walking by the river Tamasa when he saw a pair of krauñca birds (usually understood as cranes) mating. A hunter shot the male. As the female cried out, Valmiki’s grief (śoka) burst out in a curse that, to his surprise, came out in perfect metre:
मा निषाद प्रतिष्ठां त्वमगमः शाश्वतीः समाः। यत्क्रौञ्चमिथुनादेकमवधीः काममोहितम्॥
mā niṣāda pratiṣṭhāṃ tvam agamaḥ śāśvatīḥ samāḥ | yat krauñcamithunād ekam avadhīḥ kāmamohitam ||
O hunter, may you never find rest for endless years, because you killed one of this pair of cranes while it was lost in love.
Valmiki realised that his sorrow (śoka) had become a verse (śloka). The god Brahma then appeared and told him to tell the story of Rama in the same metre. The legend became the founding myth of Sanskrit poetry. It ties poetry to compassion and to the emotion of karuṇa (pathos), and later theorists such as Anandavardhana returned to it.
Other “firsts” in Sanskrit literature
Exam questions sometimes ask about the first work in a particular genre. Dates for early works are uncertain, so these are the usual textbook answers rather than settled facts.
| Category | Usual answer | Notes |
|---|---|---|
| Oldest Sanskrit text | Rigveda | Vedic Sanskrit |
| First poem / ādikāvya | Ramayana of Valmiki | Classical tradition |
| Earliest surviving grammar | Panini’s Aṣṭādhyāyī | Commonly dated around the 5th–4th century BCE |
| Earliest surviving court epics (mahākāvya) | Ashvaghosha’s Buddhacarita and Saundarananda | c. 1st–2nd century CE |
| Earliest drama | Fragments of Ashvaghosha’s plays; plays attributed to Bhasa | See Sanskrit drama |
| Treatise on drama | Bharata’s Nāṭyaśāstra | Compiled roughly 200 BCE–200 CE |
| Earliest surviving champu | Trivikrama Bhatta’s Nalacampū | See champu kavya |
Which answer should you give in an exam?
- “Which is the first kavya / first poem in Sanskrit?” → the Rāmāyaṇa of Valmiki (ādikāvya).
- “Who is the first poet (ādikavi)?” → Valmiki.
- “Which is the oldest text / oldest literature in Sanskrit?” → the Rigveda.
If you have room, mention both and explain the difference in one line, as above. For the poets who followed Valmiki, see classical Sanskrit literature and its great poets.