An Indian man accused of attempted rape has been given bail on condition that he wash and iron the clothes of all women in his village for six months.

Lalan Kumar, 20, will have to buy detergent and other items needed to provide six months of free laundry services to about 2,000 women in the village of Majhor in Bihar state, under the ruling made Wednesday.

Kumar, who washes clothes for a living, was arrested in April on charges including attempted rape, Santosh Kumar Singh, a police officer in Bihar’s Madhubani district, told AFP.

No date has been set for his trial.

“All the women in the village are happy with the court decision,” Nasima Khatoon, the head of the village council, told AFP.

“It is historic. It will boost respect for women and help to protect dignity,” added Khatoon, one of the village dignitaries who will monitor Kumar.