The Dharamshastras are treatise on dharma, civil and religious law. They are the main source of knowledge regarding Brahmanical institutions. These shastras reveal the working of the caste system in a rigid form. They throw light on the Hindu law, marriage, divorce, loans and partnerships various kinds of crimes and punishments and judicial procedure. The Dharamshastras mention the four Ashrams for the twice-born- Brahmacharya, Garhasthya, Vanaprastha and Sanyasa.