This Sunday, Venezuelans will vote for president, and for the first time since Hugo Chávez took office in 1998, the result is not a foregone conclusion. The odds still favor Chávez, who has significant fiscal resources, control of state media and a loyal and organized party base. However, the challenger Henrique Capriles, who has united the opposition and run a stellar campaign, is tied with Chávez, according to some polls.
So what happens if Capriles pulls off the upset and defeats Chávez?
"If Chavez loses, one needs to be very thankful, but the challenges are going to be huge," says Alberto Bernal, head of research at Bulltick Capital and an open critic of Chávez's economic policies.
There's a good chance Capriles already knows that. Here are the five main challenges he should be prepared for, if he wins.
1. Potential Civil War
Capriles will face a polarized public and potential violence. Chávez himself has warned that a civil war could erupt if he loses. Last weekend, two Capriles supporters were shot by protestors before an opposition campaign rally. In the case of defeat, various armed militia groups that support Chávez could take to the streets (particularly if the results are close or disputed). This would be difficult to control.
Non-political violence will also be an issue. In recent years, Venezuela has become one of the most violent countries in the world. Capriles would have to find a way to maintain law and order without further dividing the population.
2. Working With the Opposition
Capriles would have to deal with a powerful opposition that could disrupt his ability to govern. Venezuela's congress, Supreme Court and the giant state-run oil company Petróleos de Venezuela (PDVSA) will still be under the control of Chavistas, who are unlikely to want to work with a Capriles administration.
A big risk is that the Chavistas "would sabotage whatever Capriles wants to do," says Federico Barriga of the Economist Intelligence Unit.
"If he [Capriles] wins the government will try to leave him with no money."
3. The Economy
The third challenge will be finding a way to revitalize the Venezuelan private sector, which has been devastated by nationalizations and increasing state control of the economy.
"Eighty percent of the private enterprise that used to generate employment [when Chávez first took office] is gone," says Bernal. And they won't come back overnight.
4. The Currency
The fourth major dilemma will be how to manage the Venezuelan currency, which is the most overvalued in Latin America, according to Moody's Analytics. That's because the Chávez government currently operates a confusing fixed exchange rate regime with different rates and limits on the amount of foreign exchange that can be accessed.
A Capriles government would have to figure out how to devalue the currency without causing too much public unrest.
"He will have to take some pain and make some difficult decisions. This will generate problems for him in terms of governability," says Bernal.
While there are longer-term benefits of devaluation, in the short term it would mean a rise in the cost of imports and everyday goods used by Venezuelans.
5. Great Expectations
This leads us to the fifth and potentially biggest challenge for Capriles. He will have to meet the extremely high expectations of millions of Venezuelans who are hoping for immediate change.
"It's going to take many years. The damage that has been done is simply too significant," says Bernal.