A massive blaze broke out Monday at one of Indonesia's biggest oil refineries after a huge explosion turned the sprawling complex into a raging inferno.

Firefighters battled to contain the fire at the Balongan refinery in West Java, operated by state oil company Pertamina, as towering plumes of black smoke rose into the sky.

"There was a very loud sound and I thought it was a hurricane," one local resident, Rumaji, told AFP.

Firefighters are battling to contain the blaze at the refinery in West Java
Firefighters are battling to contain the blaze at the refinery in West Java AFP / Agus Sipur

"I looked outside and the fire was huge. The flames were shooting into the sky."

At least five people were seriously injured and about 1,000 local residents were evacuated from the scene after the fire broke out early Monday morning at a storage tank and then spread to other containers.

The local disaster agency said one person had died from a heart attack after the explosion.

IMAGES A massive blaze breaks out at one of Indonesia's biggest oil refineries, seriously injuring at least five people and forcing the evacuation of about 1,000 local residents.
IMAGES A massive blaze breaks out at one of Indonesia's biggest oil refineries, seriously injuring at least five people and forcing the evacuation of about 1,000 local residents. AFPTV / STRINGER

About 15 people were slightly injured and authorities said they were checking on the whereabouts of three others.

"To prevent the fire from spreading we've shut down operations... and are putting our efforts into handling the blaze," Pertamina's president director Nicke Widyawati said in a statement.

The fire forced about 1,000 local residents to to evacuate the area
The fire forced about 1,000 local residents to to evacuate the area AFP / Agus Sipur

By Monday afternoon, the disaster agency said the blaze had been contained but was yet to be extinguished.

Pertamina said it did not expect the fire to cause fuel supply disruptions due to its high volume of stock.

"There's more than enough national supply," said Mulyono, Pertamina's logistics and infrastructure director, who like many Indonesians goes by one name.

"So people don't need to panic."

Greenpeace called for a probe into the accident.

"These kinds of dangerous incidents have been happening repeatedly in fossil-fuel industries," the environmental group said.

"If there's any evidence of negligence or a violation of (health and safety) procedures, the government must file criminal charges to hold Pertamina accountable," it added.

The sprawling plant -- which opened in the mid-nineties and can refine some 125,000 barrels of oil a day -- is about 200 kilometres (120 miles) east of the capital Jakarta.

- Bloomberg News contributed to this report