HAVANA -- Venezuelan President Hugo Chavez's reelection was welcome news on the streets and in the halls of power of Cuba, which relies on the South American nation for a big chunk of its economy through trade and preferential oil shipments.
Chavez counts former Cuban President Fidel Castro as a friend and mentor, and his opponent, Henrique Capriles, had promised to change a relationship he described as financing Cuba's political model.
"I'm sure it's a big sigh of relief (in the Cuban government), because what they faced under Capriles was a certain renegotiation, at minimum, of the oil deal," said Philip Peters, a longtime Cuba observer at the Virginia-based Lexington Institute think tank. "It would have been a tough blow."
Cuba was hit hard by the collapse of the Soviet Union at the dawn of the 1990s and subsequent loss of billions in aid, and Chavez's election in 1998 resulted in a welcome ideological and commercial friend.
With polls showing Chavez facing the most serious electoral rival of his presidency, the Venezuelan race has been a constant fixture in Cuban state media for the last month and a half. Campaign news led TV broadcasts, topped the fronts of newspapers and was endlessly analyzed on roundtable shows.
Cuban television devoted hours to the election results on Sunday, covering the late-night announcement of Chavez's 10-point victory and shortly afterward reading out a congratulatory note from Cuban President Raul Castro.
"Your decisive victory ensures the continuity of the struggle for genuine integration in our America," Castro said.
There was no immediate comment from Fidel Castro, who left office permanently in 2008 and is rarely seen in public these days.
Ordinary Cubans also greeted the news, keenly aware of the country's special relationship with a man who visited frequently even before he began receiving cancer treatment from Cuban doctors.
"For us, it is a joy," said Rosa Hernandez, a 45-year-old Havana homemaker.
"In practical terms, for Cubans it means the continuity of a relationship that could have been interrupted," said Leonardo Juan, a state-run business worker. "It means a strengthening of very close ties."
According to government statistics, Cuba and Venezuela did some $6 billion in trade last year, or around 40 percent of all Cuban trade in commercial goods, most of that comprised of Cuban imports of oil and derivatives.
The figure does not include the legions of Cuban doctors and other professionals performing services in Venezuela, but it still far outstripped Cuba's No. 2 commercial partner, China, which accounted for $1.9 billion in trade with the island in 2011.
Cuba and Venezuela have also joined forces to rehabilitate the Cuban port of Cienfuegos, where they operate a refinery together.
Six more years of Chavez also means Havana can continue to count on Venezuelan support in international politics, a reliable friend to bang the drum for Cuban interests in the region and its disputes with Washington.
"It ties into Cuban foreign policy too," Peters said. "Cuba and Venezuela have their alliance and their vision that they're trying to promote in the Americas."
Havana surely is not alone in its relief.
Nearly 20 Caribbean and Latin American nations, including tiny and struggling economies like Haiti, benefit from the Petrocaribe program under which Venezuela provides oil and natural gas at preferential prices.
"In the Dominican Republic, they were ecstatic. ... The Dominican economy probably would have collapsed without the generous terms of Petrocaribe," said Eduardo Gamarra, a Latin American studies professor at Florida International University.
"In the Caribbean, (Chavez) has all this collection of little countries who are not important in terms of the economy ... they survive because of these subsidies from Chavez," Gamarra said. "But guess what they also do: They vote. ... They will vote very disciplined with Chavez when it comes to an important U.N. vote, an important OAS vote, and Chavez knows that."
Associated Press writers Andrea Rodriguez in Havana and Ian James in Caracas contributed to this report.
Also on HuffPost:
February 4, 1992
In February 1992, Venezuelan lieutenant colonel Hugo Chávez Frías led a loyal secretive military cell, the Revolutionary Bolivarian Movement, in a coup to overthrow the government of President Carlos Andres Perez. The coup, known as Operation Zamora, failed and Chávez was arrested.
March 26, 1994
In March 1994, Chávez was released from jail by newly elected Venezuelan president Rafael Caldera. In the following years, Chávez traveled across Venezuela and Latin America to talk about his political views and founded a social democratic party, the Fifth Republic Movement, in 1997.
December 6, 1998
In December 1998 Chávez was elected president of Venezuela, supported by the poor and large parts of the middle class. He was inaugurated in February 1999 in Caracas, giving a remarkable speech in which he announced sweeping reforms.
Chávez during his inauguration as president in February 1999.
As president, Chávez formed close ties with socialist leaders of neighboring countries; Cuba's Fidel Castro and Bolivia's Evo Morales.
In 2000, Chávez was reelected for a second term. During the president's second term, Venezuela became one of the world's largest exporters of crude oil. Chávez nationalized much of the oil industry under a state run-company, Petróleos de Venezuela S.A. During his second term, Chávez stepped up criticism of the United States, coming out as a strong opponent of American intervention in the Middle East.
In January 2001, a first series of massive demonstrations broke out as thousands protested the government's suggested educational reforms.
April 11, 2002
In April 2002, new large protest take a violent turn. Twenty people were killed and over a hundred were wounded. A group of high-ranking officers launched a coup against the president and Chávez agreed to step down. Yet only days later, newly appointed president Pedro Carmona resigned and Chávez took over control.
April 14, 2002
Chávez addresses the nation after being back in power on April 14, 2002.
Hundreds of thousands took to the streets in December 2002, demanding the ouster of the presidents. Venezuela was held in the grip of a two-month long strike that crippled the country's economy.
August 14, 2004
An August 2004-referendum to recall Chávez from power fails.
In December 2006, Chávez is reelected for a third term in office, again taking home a landslide victory. "Today, a new era has started, with the expansion of the revolution, of a revolutionary democracy," Chavez supporter crowds.
February 19, 2009
In a 2009-referendum Venezuelans approved an alteration of the constitution, abolishing the two-term limit for public offices. The change clears the path for Chávez to run in the 2012 elections.
After traveling to Cuba for treatment, Chávez announced he underwent cancer surgery and would start chemotherapy. The president did not specify which cancer he was fighting.