The Yajnavalkya Smriti (IAST: Yājñavalkya Smṛti) is one of the many Dharma-related texts of Hinduism composed in Sanskrit. It is dated to between the 3rd to 5th-century CE, and belongs to the Dharmasastras tradition. The text was composed after the Manusmriti, but like it and Naradasmriti, the text was composed in shloka (poetic meter) style. The legal theories within the Yajnavalkya Smriti are presented in three books, namely achara-kanda (customs), vyavahara-kanda (judicial process) and prayascitta-kanda (crime and punishment, penance).
The text is the "best composed" and systematic specimen of this genre, with large sections on judicial process theories, one which had greater influence in medieval India's judiciary practice than Manusmriti. It later became influential in the studies of legal process in ancient and medieval India, during the colonial British India, with the first translation published in German in 1849. The text is notable for its differences in legal theories from Manusmriti, for being more liberal and humane, and for extensive discussions on evidence and judiciousness of legal documents.
The text most likely dates to the Gupta period, between roughly the 3rd and 5th centuries of the common era. There is some debate as to whether it is to be placed in the earlier or later part of that time span.[note 1] Patrick Olivelle suggests the likely date may be in the 4th to 5th-century CE.
Arguments for particular dating are based on the concise, sophisticated vocabulary found throughout the text and on the use of certain terms such as nāṇaka (a coin), and references to Greek astrology (which has been known in India since the 2nd century; see Yavanajataka). The argument arises when considerations are made as to who was exchanging the nāṇaka and when the level of Greek thought which the author understood is brought into question.
Every loan transaction, where any amount has been agreed to be repaid with interest by a contract entered into by mutual consent, should be reduced to writing and should be attested by witnesses.
— Yajnavalkya Smriti 2.84 
The text is named after the revered Vedic sage Yajnavalkya who appears in many major Upanishads of Hinduism as well as other influential texts such as the Yoga Yajnavalkya. However, the text was composed more than a millennium after his life, and likely attributed to him out of respect, as has been common in the Hindu traditions.
The text is in classical Sanskrit, and is organized in three books. These are achara-kanda (368 verses), vyavahara-kanda (307 verses) and prayascitta-kanda (335 verses). The Yājñavalkya Smṛti consists of a cumulative total of 1,010 ślokas (verses), and its presentation is methodical, clear and concise instead of the poetic "literary beauty" found in Manusmriti according to Robert Lingat.
Ludo Rocher states that this treatise, like others in Dharmasastras genre, is a scholarly tradition on Dharma rather than a Law book, as understood in the western languages. In contrast, Robert Lingat states that the text is closer to presenting legal philosophy and a transition from being Dharma speculations found in earlier Dharma-related texts.
The text is laid out as a frame story in which the sages of Mithila approach Yājñavalkya and ask him to teach them dharma. The text opens its reply by reverentially mentioning ancient Dharma scholars, and asserting in verses 1.4-5 that the following each have written a Dharmasastra (most of these are lost to history) – Manu, Atri, Visnu, Harita, Yajnavalkya, Ushanas, Angiras, Yama, Apastamba, Samvarta, Katyayana, Brihaspati, Parashara, Vyasa, Samkha, Likhita, Daksha, Gautama, Shatatapa and Vashistha. The rest of the text is Yājñavalkya's theories on dharma, presented under Ācāra (proper conduct), Vyavahāra (criminal law) and Prāyaścitta (expiation).
The Yajnavalkya Smriti extensively quotes the Manu Smriti and other Dharma-texts, sometimes directly paraphrasing passages from these, often reducing earlier views into a compendium and offering an alternate legal theory. There are influential differences from the Manu Smriti and earlier Dharma texts, especially with regard to statecraft, the primary of attested documentary evidence in legal process, and in jurisprudence.
Woman is to be respected by her husband,
brother, father, kindred, mother-in-law, father-in-law,
husband's younger brother, and the bandhus,
with ornaments, clothes and food.
— Yajnavalkya Smriti 3.82 
- a)Divided dharma into fairly equally weighted categories of:
- b)Subdivided these three further by specific topics within the major subject heading.
2. Documentary evidence as the highest foundation of Legal Procedure:
- Yājñavalkya portrayed evidence as hierarchical, with attested documents receiving the highest consideration, followed by witnesses, and finally ordeals (five types of verifiable testimony).
- Yājñavalkya distinguished between courts appointed by the king and those which were formed by communities of intermediate groups. He then portrayed these courts as a part of a system of hierarchical appeals.
- Forest hermits and renouncers are discussed within the section regarding penance (prāyaścitta). In previous texts, description of ascetics followed the discussion of Brahmins and framed them in opposition to householder Brahmins. The placement of ascetic orders within penance remained in subsequent texts following the general acceptance of the Yājñavalkya Smṛti.
- Increased attention was given to a description of Mokṣa, dwelling on meditation and the transience of the worldly body. There is even an in-depth, technical discourse based on a medical treatise of the time.
Five medieval era bhasya (review and commentaries) on Yajnavalkya Smrti have survived into the modern era. These are by Visvarupa (Bālakrīḍā, 750-1000 CE), Vijanesvara (Mitaksara, 11th or 12th century, most studied, from the Varanasi school), Apararka (Apararka-nibandha, 12th-century, from the Kashmir school), Sulapani (Dipakalika, 14th or 15th century) and Mitramisra (Viramitrodaya, 17th-century).
The legal theories in this text were likely very influential in medieval India, because its passages and quotes are found inscribed in every part of India, and these inscriptions are dated to be from around 10th to 11th century CE. The text is also widely commented upon, and referenced in popular works such as the 5th-century Panchatantra. The text is profusely quoted in chapters 253-258 of the extant manuscripts of the Agni Purana, and in chapters 93-106 of the Garuda Purana.
- Patrick Olivelle 2006, p. 176 with note 24.
- Patrick Olivelle 2005, p. 20.
- Patrick Olivelle 2006, p. 188.
- Robert Lingat 1973, p. 98.
- Timothy Lubin, Donald R. Davis Jr & Jayanth K. Krishnan 2010, pp. 59-72.
- Mandagadde Rama Jois 1984, p. 31.
- Robert Lingat 1973, p. 97.
- Mandagadde Rama Jois 1984, pp. 31-32.
- Winternitz 1986, pp. 599-600.
- Mandagadde Rama Jois 1984, p. 300.
- Robert Lingat 1973, pp. 97-98.
- Ludo Rocher 2014, pp. 22-24.
- Timothy Lubin, Donald R. Davis Jr & Jayanth K. Krishnan 2010, p. 44.
- Timothy Lubin, Donald R. Davis Jr & Jayanth K. Krishnan 2010, p. 51.
- Benoy Kumar Sarkar (1985). Hindu Sociology. Motilal Banarsidass. p. 192. ISBN 978-81-208-2664-9.
- Charles Drekmeier (1962). Kingship and Community in Early India. Stanford University Press. p. 231. ISBN 978-0-8047-0114-3.
- Timothy Lubin, Donald R. Davis Jr & Jayanth K. Krishnan 2010, p. 45.
- SC Vidyarnava (1938), Yajnavalkya Smriti, Book 1, verse III.LXXXII, page 163
- Olivelle, "Literary History," p. 21
- Timothy Lubin, Donald R. Davis Jr & Jayanth K. Krishnan 2010, pp. 45-46.
- Mandagadde Rama Jois 1984, pp. 300-302.
- Olivelle, "Literary History," p. 22
- Sures Chandra Banerji (1999). A Brief History of Dharmaśāstra. Abhinav Publications. pp. 72–75. ISBN 978-81-7017-370-0.
- Ludo Rocher (2008). Gavin Flood (ed.). The Blackwell Companion to Hinduism. John Wiley & Sons. p. 111. ISBN 978-0-470-99868-7.
- Mandagadde Rama Jois 1984, p. 32.
- John Mayne 1991, pp. 21-22.
- Sures Chandra Banerji (1999). A Brief History of Dharmaśāstra. Abhinav Publications. pp. 35–36. ISBN 978-81-7017-370-0.
- Mandagadde Rama Jois (1984). Legal and Constitutional History of India: Ancient legal, judicial, and constitutional system. Universal Law Publishing. ISBN 978-81-7534-206-4.
- Robert Lingat (1973). The Classical Law of India (Translated by J Duncan M Derrett). University of California Press. ISBN 978-0-520-01898-3.
- Timothy Lubin; Donald R. Davis Jr; Jayanth K. Krishnan (2010). Hinduism and Law: An Introduction. Cambridge University Press. ISBN 978-1-139-49358-1.
- John Mayne (1991). A treatise on Hindu law and usage. Stevens and Haynes, London (Reprinted by Motilal Banarsidass). OCLC 561697663.
- Patrick Olivelle (2006). Between the Empires: Society in India 300 BCE to 400 CE. Oxford University Press. ISBN 978-0-19-977507-1.
- Patrick Olivelle (1999). Dharmasutras: The Law Codes of Ancient India. Oxford University Press. ISBN 978-0-19-283882-7.
- Patrick Olivelle (2005). Manu's Code of Law. Oxford University Press. ISBN 978-0-19-517146-4.
- Ludo Rocher (2014). Studies in Hindu Law and Dharmaśāstra. Anthem Press. ISBN 978-1-78308-315-2.
- Winternitz, Maurice (1986). History of Indian Literature. Motilal Banarsidass Publ. ISBN 81-208-0056-7.
- Nath Dutt, Manmatha (2005). Yajnavalkyasmrti: Sanskrit Text, English Translation, Notes, Introduction and Index of Verses. New Delhi: Parimal Publications. ISBN 81-7110-273-5.
- Yájnavalkya Smriti with Vijnanesvara commentary, Book 1 of 3 SC Vidyarnava (1918), English translation
- Yájnavalkya Smriti with Vijnanesvara commentary (Sanskrit manuscript)