Irfana Iqbal, a Muslim panchayat member, performed last rites for Narayanan, a Hindu man.
The deceased had been abandoned by his family after being diagnosed with fourth-stage cancer.
Irfana Iqbal organized medical care and burial arrangements after finding him in poor condition.
The act of performing the funeral rites in accordance with Hindu traditions went viral online.