Leonardo DiCaprio has angered the Indonesian government with a warning that its rainforests are being destroyed to make way for palm oil plantations.

The Hollywood actor, who is a longtime environmental campaigner, entered the country on Sunday and visited Aceh's Gunung Leuser National Park.

"A world-class biodiversity hotspot ... but palm oil expansion is destroying this unique place," he posted on Instagram.

"If we don't stop this rampant destruction, the Leuser Ecosystem and the Sumatran orangutans that call it home could be lost forever."