By Hannah Beech

New York Times News Service

BUNGA TANJUNG, Indonesia — The men came at Hope and her baby with spears and guns. But she would not leave. There was no place for her to go.

When the air-gun pellets pierced Hope’s eyes, blinding her, she felt her way up the tree trunks, auburn-furred fingers searching out tropical fruit for sustenance.

By the end, Hope’s torso was slashed with deep lacerations. Multiple bones were broken. Seventy-four pellets were lodged in her body. Her months-old baby had been ripped away.

Hope, who was named at a rehabilitation center, is a Sumatran orangutan — a critically endangered animal that scientists warn could be the first major great ape species to go extinct. As jungle and swamp are cleared for palm oil plantations, orangutans, whose name means “people of the forest” in Malay, are losing the very habitat that gives them their identity.

Around the Indonesian island of Sumatra, charred landscapes of blackened tree stumps and singed earth attest to the devastation wrought by humans.

“Twenty thousand hectares are cleared and a couple trees are left, and the orangutan looks around and says, ‘What happened to my forest?’” said Ian Singleton, the director of the Sumatran Orangutan Conservation Program.

Two nations, Indonesia and Malaysia, provide the world with more than 80% of the palm oil used in everything from biofuel and cooking oil to lipstick and chocolate. Last September, amid concerns over diminishing habitat for endangered species and dangerous carbon emissions from mass burnings to clear land, Indonesia stopped issuing new licenses for palm oil plantations.

But as Hope’s plight shows, directives issued in air-conditioned government offices can mean little in poor villages. The global appetite for palm oil is voracious.

“They say there is a moratorium, but I can see with my own eyes that land is being lost every day,” said Krisna, a coordinator for the Human Orangutan Conflict Response Unit, a group based on Sumatra that has rescued more than 170 injured orangutans since 2012. Like many Indonesians, Krisna goes by a single name.

Orangutans live on just two islands in the world. Apart from humans, they are the only great ape species that resides outside of Africa.

From 1999 to 2015, the orangutan population on the island of Borneo declined by more than 100,000, researchers reported in Current Biology, a scientific journal. There are about 100,000 orangutans remaining on Borneo, according to the World Wildlife Fund. On Sumatra — where more than half of the forest cover has been lost since 1985, according to a coalition of environmental groups called Eyes on the Earth — there are fewer than 14,000 Sumatran orangutans.

That might not sound like a figure heralding certain extinction. But because orangutan mothers let so much time pass between births — eight to nine years are dedicated to raising each child — scientists fear that the population is in a death spiral.

The unluckiest orangutans die in the fires set to clear the land. The more fortunate are marooned on small islands of trees among oil palms. Desperate for food, they stray into areas inhabited by humans, raiding crops and provoking villagers to act.

“They eat a couple fruit, and they get shot,” Singleton said. “And nothing’s done about it. There’s no law enforcement.”

When Hope showed up earlier this year on the outskirts of Bunga Tanjung village in Aceh province on Sumatra, some of the earth was smoldering. Neat rows of oil palm seedlings stretched toward the horizon. Confined to a narrow strip of secondary forest, Hope gobbled fruit from village orchards to survive.

The majority of Bunga Tanjung’s residents are not from Aceh, but are poor, economic migrants from other parts of Indonesia, lured by the demand for palm oil.

The palms, a species native to West Africa, provide essential income for often struggling farmers, even if the plants spread pernicious roots that make it difficult to till the land again.

“Without palm oil, we cannot survive,” said Sanita, the mayor of a Bunga Tanjung borough.

Over a period of weeks, villagers shot at Hope, trying to scare her away. But with few places to go but the sliver of jungle, Hope stayed put.

A 100-pound orange ape is considered an oversized pest, but Hope’s baby held promise for some in the village. Although selling endangered species is illegal, orangutan babies are often captured for the pet trade, or for zoos in need of a star attraction.

A big-eyed baby with tufts of coppery hair can earn villagers $70, according to local conservationists who have tracked the endangered species trade.

Adulthood, though, devalues the captive orangutans. They aren’t as cute. They are too strong.

In March, a teenager from Bunga Tanjung headed for a cluster of trees. His aim: To pry Hope’s baby from her arms. Even though pellets had robbed the mother of her eyesight, Hope struggled to protect her child, leaving scratches on the boy’s arms.

But the teenager did ultimately succeed in taking the baby away, keeping it in a basket outside his home.

By the time local forestry officials were alerted to Hope’s presence and mounted a rescue effort, the baby was barely responsive, said Krisna, the coordinator for the orangutan rescue organization.

Sanita, the mayor, presented a different version of events. Hope was only in the village for a couple of days, he said, contradicting the evidence of weeks of orangutan nests built in nearby trees. No one in his village had shot her, he said, discounting the 74 pellets.

“We wouldn’t do anything to hurt orangutans, even though the orangutans bother us,” he said.

With Hope sedated in the back of a vehicle, the baby restored to her embrace, Krisna rushed to Singleton’s rehabilitation center near the city of Medan, 10 hours away. The baby died along the way.

A Swiss surgeon flew out to operate on Hope. Surgeons tend to be more adept than veterinarians at ape surgery. Hope is recovering in an enclosure. She has learned through touch to accept a papaya or bottle of milk from a keeper.