The incident took place at Cheggan Neura village in Minapur block of Bihar's Muzaffarpur district.
The officer in-charge of women's police station in Muzaffarpur, Ms Jyoti told PTI that the woman had submitted a written complaint on September 25 against her father-in-law and brother-in-law for turning a deaf ear to her constant pleas for a toilet.
Because of this hardship, she would come to her marital home only when her husband returned from his work place in Tamil Nadu.
She used to again shift to her father's house after he went back to his place of work.
On the basis of it, the police called the two accused to the police station on September 26, Ms Jyoti said.
The two relented before police and the father-in-law signed the bond that a toilet would be constructed at home soon.
"We asked them to do it in one week but they pleaded for some more time to arrange money. After the compromise was reached, the woman withdrew her complaint," Ms Jyoti added.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.