Dharmaśāstra (Sanskrit: धर्मशास्त्र) is a genre of Sanskrit texts on law and conduct, and refers to the treatises (śāstras) on dharma

There are many Dharmashastras, variously estimated to be 18 to about 100, with different and conflicting points of view

Each of these texts exist in many different versions, and each is rooted in Dharmasutra texts dated to 1st millennium BCE that emerged from Kalpa (Vedanga) studies in the Vedic era

The textual corpus of Dharmaśāstra were composed in poetic verses, are part of the Hindu Smritis, constituting divergent commentaries and treatises on duties, responsibilities and ethics to oneself, to family and as a member of society

The texts include discussion of ashrama (stages of life), varna (social classes), purushartha (proper goals of life), personal virtues and duties such as ahimsa (non-violence) against all living beings, rules of just war, and other topics

Dharmaśāstra became influential in modern colonial India history, when they were formulated by early British colonial administrators to be the law of the land for all non-Muslims (Hindus, Jains, Buddhists, Sikhs) in South Asia, after Sharia i

e

Mughal Empire’s Fatawa-e-Alamgiri set by Emperor Muhammad Aurangzeb, was already accepted as the law for Muslims in colonial India