The police said the woman took the extreme step as she was upset over the incident.
The 24-year-old victim, who had sustained more than 80 per cent burns, was shifted from Deoria district hospital to Gorakhpur after her condition deteriorated. On Saturday evening, she died at the hospital.
Inspector Suraj Pal Singh of Kotwali police station said all five accused in the case had been arrested. The woman had been staying with her father, G Rajbhar, in Deoria for the last two years after a marital dispute.
Rajbhar stated in the FIR that on January 23 when his daughter was returning home after visiting a friend in a nearby village, Bablu of the same village stopped her and forcibly dragged her to his house, which is in an isolated spot. He was accompanied by his three associates Balwant, Gulel and Chhathhu. The accused detained the girl for over two hours and raped her.
The police said, the next day, the woman bolted her room from inside and set herself on fire.