While passing the judgement on Friday, family court judge Rajendra Kumar Sharma said that toilet at home was necessary for the family and going to defecate in the open was "disgraceful" for society and a "torture" to women.
The woman, in her 20s, "contended that her husband was cruel to her, there was no separate room for the couple in the house and no toilet".
Women in villages have to wait for dark to go out to relieve themselves and they have to bear physical pain, the court said.
Follow NDTV for latest election news and live coverage of assembly elections 2019 in Maharashtra and Haryana.
Subscribe to our YouTube channel, like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.