An Indonesian woman burned her husband alive after he refused to give her the passcode to his mobile phone.

Dedi Purnama, 26, had been working to repair the roof tiles on the couple's home when his wife Ilham Cahyani, 25, asked for his password.

He refused, sparking an argument during which he hit her before she poured petrol on him and set him on fire.

Mr Purnama died two days after the incident in the East Lombok Regency of the Indonesian Province of West Nusa Tenggara.

Burned alive: Dedi Purnama, 26, died two days after his wife, 25, poured petrol on him and set him on fire during a fight about his mobile phone in their home in Indonesian

East Lombok Police Chief Made Yogi said the initial verbal argument between the couple had escalated when Mr Purnama climbed down from the roof and hit his wife.

Cahyani reportedly grabbed a petrol can and poured the flammable liquid over her husband before setting him aflame using a lighter.

A witness identified as Oji told reporters he had run over to the couple's house after spotting the flames and helped put them out.

Mr Purnama, shown during the aftermath of the attack, hit his wife when their argument escalated, after which she grabbed a petrol can

Tragic: Mr Purnama was rushed to hospital and died two days after the incident

Mr Purnama was rushed to the Keruak Health Centre and underwent treatment for two days for the horrific burns he sustained.

Photos show large parts of the 26-year-old's upper body severely burnt as he lies on a mattress.

Mr Purnama died after two days hospital.

Cahyani has been arrested and reportedly remains in custody at East Lombok Regional Police Station, although it is unclear if she has been charged.

The investigation is ongoing.