There was a time when Evo Morales so alienated his opponents that Bolivia nearly broke in two.

But those were the days of the old Evo. On Sunday, when Bolivians vote for president, Morales is expected to breeze to a third term behind a broad coalition of longtime supporters and one-time enemies. The latest polls show him trouncing a scattered field of opponents by a margin of 40 points or more.

After nearly a decade in power, Morales has buried the old political order in Bolivia, one of South America’s poorest nations, and consolidated control over nearly every facet of government. Much of the country’s economy is in state hands. Morales’s political party, the Movement Toward Socialism, dominates Bolivia’s legislature. Last year, Supreme Court judges said he could run for president again, despite term limits, because his first term had been interrupted when he had the constitution rewritten.

“We have never had a government as powerful as this one,” said Jorge Lazarte, a political analyst in La Paz. “But it has despotic tendencies.”

The first president elected from Bolivia’s long-suffering indigenous majority, Morales, 54, was a former coca farmer who rose to prominence leading marches against U.S.-backed drug-eradication efforts. He often railed against capitalism and Bolivia’s business class, which initially regarded him as a homegrown version of Hugo Chávez, in a hairy sweater.

A view of the El Alto skyline which overlooks the city of La Paz. (Dominic Bracco II/Prime)

Morales was once so despised in Bolivia’s wealthier, lowland regions that his opponents tried to build a separatist movement in 2008. Their push eventually fizzled out. Today, even his critics concede he is a supreme political talent and a savvy operator.

Also, they say, Evo has evolved.

When Morales moved early on to increase government control and taxation of Bolivia’s gas and oil development, critics warned he would scare away foreign capital. But Bolivia’s hydrocarbon riches drew new investors, pumping billions from gas royalties into government coffers. The gas money has been the source of Morales’s power, allowing him to vastly expand the reach and the role of the Bolivian state.

Morales has invested heavily in public works projects and social programs to battle poverty and racism in some of Bolivia’s most neglected corners. He also practiced fiscal discipline — running a budget surplus every year — and quietly accommodated private-sector interests, delivering 7 percent economic growth last year.

Here in chilly, high-altitude La Paz, the streets are clogged with new cars. Construction crews are everywhere. Indigenous women in bowler hats and billowing skirts ascend the city’s steep canyonsides in the quiet comfort of Swiss-made gondolas, floating above the streets aboard a new aerial public transportation system, the Teleferico, which has become a symbol of Morales’s development vision.

Morales’s smiling face appears on Teleferico maps, promotional billboards — even stenciled onto the metal towers that support the cables.

Elsewhere around the city, the president’s campaign banners simply say: “With Evo, we’re doing well.” Few would disagree.

A woman walks past anti Evo graffiti in downtown La Paz. (Dominic Bracco II/Prime)

Most improbably, Morales has won grudging respect in lowland Santa Cruz, Bolivia’s most populous city and the bastion of the mostly white industrial captains who once conspired against him and threatened to form their own breakaway state.

“This is a great moment for Bolivia,” said Luis Barbery, a sugar magnate and the president of CAINCO, the country’s leading business and trade association. “We have a new understanding with the government.”

Over the years, Santa Cruz’s business leaders have learned to tune out Morales’s anticapitalist diatribes but take seriously his private appeals for help with an ambitious growth agenda.

According to Barbery, Morales has come to understand that “the government can’t do everything on its own” and “needs everyone pulling in the same direction.”

When squatters recently attempted to invade the property of a local landowner, the government sent police to arrest the intruders — sending “a positive signal” to foreign investors, Barbery said.

Some of the indigenous leaders, environmentalists and activists who lifted Morales to power have soured on him for many of these same reasons, saying he’s turned out no different from previous Bolivian presidents who ruled on behalf of a wealthy, light-skinned elite. They note that Morales seems increasingly inclined to surround himself with foreign-educated technocrats in business suits.

“I feel cheated,” said Felix Muruchi, a union activist and university professor from Morales’s same Aymara ethnic group, who, like other indigenous Bolivians, didn’t have voting rights until 1952.

“We indigenous people continue at the bottom, out of sight,” Muruchi said.

In El Alto, the sprawling Aymara settlement at the edge of La Paz that has boomed under Morales, there have been flashes of discontent, including violent protests in 2011 over a plan to slash fuel subsidies.

But support for Morales among ordinary Bolivians remains strong, and Bolivia’s indigenous groups are largely committed to the leader they still view as one of their own.

Another reason Morales so thoroughly dominates Bolivian politics is that there is no significant ideological debate over the direction of the country, said Grover Yapura, editor of the Bolivian magazine Oxigeno. “No one is proposing, for example, the reprivatization of the petroleum industry,” he said.

Morales’s campaign opponents,among them former president Jorge Quiroga, instead focus on allegations of waste and corruption.

Yapura said the average Bolivian has seen a clear improvement in the standard of living under Morales. But it has come at the expense of democratic checks on power. “We live in a country with a strongman who wants to control everything,” Yapura said.

Despite its name, Morales’s political party, the Movement Toward Socialism, does not appear in much of a hurry to get there, as it seeks new partnerships with multinational oil companies and other foreign investors. But Morales still blasts global capitalism in his speeches and wields the anti-American rhetoric he honed decades ago when he was organizing coca growers.

While in New York last month for the U.N. General Assembly, Morales called President Obama “an imperialist” and “a war criminal” who should be tried in international court.

Morales restored diplomatic relations with the United States in 2011 — he had kicked out the U.S. ambassador in 2008 — but has refused to allow the DEA back into the country.

Bolivia remains the world’s third-largest cocaine producer, after Peru and Colombia, but according to U.N. figures, coca cultivation in the country fell last year to its lowest point since 2002, the result of Morales’s eradication efforts and negotiations with growers. Coca cultivation is legal in the country, as the plant’s leaves are widely used here in tea or chewed raw for their mild stimulant effect.

The one threat Morales faces is a fall in gas prices. That would cost him his main power source, analysts say, potentially bringing Bolivia’s dormant divisions back to the fore.

“We have a saying,” said Muruchi, the Aymara activist and professor. “In Bolivia, anything is possible, and nothing is certain.”