Dharma shastras are ancient Indian texts that outline the moral, ethical, and legal duties of individuals based on their social roles and responsibilities within Hindu society. These texts provide a framework for understanding dharma, which is the moral law guiding individual conduct and social order, emphasizing the importance of righteousness and duty in daily life.