The shocking moment a homeless man is set on fire while sleeping on a sidewalk in Brazil before crawling away and dying of his injuries has been caught on surveillance footage.

Carlos Roberto Vieira da Silva was attacked Sunday shortly after midnight by an unidentified man on a street sidewalk in Mooca, a city in the state of Sao Paulo.

A surveillance camera from a nearby business captured the heinous attack when a suspect dressed in black dosed a flammable liquid on the ground near where the 39-year-old man was sleeping on top of a cardboard box.

A huge explosion followed and the assailant abandoned the scene.

WARNING GRAPHIC CONTENT

Police in Sao Paulo, Brazil, are looking for an unidentified man (circled) who was seen on a surveillance video setting Carlos Roberto Vieira da Silva on fire Sunday morning. The 39-year-old homeless man died at a local hospital from injuries suffered in the attack

The suspect (circled) set the ground on fire before Carlos Roberto Vieira da Silva's body was engulfed in flames. He suffered second and third degree burns to his legs, chest, back and face

Vieira da Silva was seen in the security video footage crawling as his entire body was engulfed in flames.

At least two people ran out of a vehicle and another person raced over in an attempt to put the fire out.

Vieira da Silva suffered burns to 70% of his body and was rushed to Tatuapé Municipal Hospital where he was declared dead.

Doctors diagnosed him with second and third degree burns to his legs, back chest and face

A surveillance camera captures the moment Carlos Roberto Vieira da Silva (circled) walks as his body is completely in flames after he was attacked while he slept outside a supermarket in Mooca, a city in the southeastern Brazilian state of Sao Paulo

Good Samaritans (circled) rushed to the aid of Carlos Roberto Vieira da Silva after he was set on fire

Investigators found a gallon of fuel as the site of the attack and were investigating surveillance cameras from the area in hopes of finding and arresting the perpetrator.

Joao Elieser Junior told Brazilian television network G1 that Vieira da Silva had camped out under the supermarket's awning for almost a year.

'People gave him something to eat, drink. Nobody saw any of it,' he said.

A person, who spoke on the condition of anonymity, revealed that Vieira da Silva attempted to get him off the streets, but he refused because he wanted to make his own money.