President Hugo Chavez crashed to an unprecedented vote defeat on Monday as Venezuelans rejected his bid to run for reelection indefinitely and accelerate his socialist revolution in the OPEC nation.

In a fiercely contested referendum on Sunday, voters said No to a raft of reforms that would have scrapped term limits on Chavez's rule, boosted his powers to expropriate private property and allowed him to censor the media in emergencies.

The No camp won with about 51 percent of the vote, beating the anti-U.S. president who scored around 49 percent support, election officials said early on Monday.

Celebrations immediately erupted throughout Caracas with caravans of opposition activists cheering, honking horns and waving flags out of car windows. Many said Venezuela had narrowly escaped the imposition of authoritarian rule.

The reform would have made some frightening changes in our country, said an ecstatic Astrid Badell, 18, pulling a plastic green whistle from her mouth to talk. It would have practically been a copy of the Cuban constitution, and that would have been a big step backward.

While Chavez remains powerful and popular, it was his first ballot box loss since he first swept into office nine years ago after failing to seize power in a 1992 military coup.

The self-styled revolutionary and close ally of Cuba conceded defeat but said he would continue in the battle to build socialism.

Chavez also said the reform proposals remained alive, suggesting he might try to push them through later on.

This is not a defeat. This is another 'for now,' Chavez said, repeating a famous quote when as a red-bereted paratrooper he acknowledged his coup attempt had failed.

He did not appear despondent at his presidential palace, where he told supporters not to be sad and wished all Venezuelans a merry Christmas.

I have listened to the voice of the people and I will always be listening to it, he said.

Students, rights and business groups, opposition parties, the Roman Catholic Church, former political allies and even his usually loyal ex-wife all lined up against Chavez ahead of the referendum vote.

They accused him of pushing the constitutional reforms to set up a dictatorship.

Venezuela said 'No' to socialism, Venezuela said 'Yes' to democracy, said Leopoldo Lopez, the popular mayor of a Caracas district.

DANGEROUS INFLUENCE

The United States says Chavez is a dangerous influence in Latin America, using Venezuela's oil wealth to win allies and undermine democracy.

A fiery speaker, Chavez has called President George W. Bush the devil and Mr. Danger, says capitalism is evil and dismisses his critics at home as traitors. But his tone was unusually conciliatory in conceding defeat on Monday.

Admired as a champion of the poor in city slums and rural villages, the 53-year-old Chavez has said he wants to rule until he dies. But, without a constitutional reform, he will have to step down in 2013.

The loss was a shock to the government. Three ministers had said early on that Chavez was ahead by at least six percentage points but his lead evaporated as more returns came in.

It was a major victory for Venezuela's fragmented opposition, which had failed to beat Chavez in almost yearly votes or oust him in a brief coup in 2002, a national oil strike and a recall referendum.

The victory could embolden opposition leaders to try to block Chavez's plans to install what he calls 21st century socialism, which has involved nationalizing large areas of the economy in the No. 4 oil supplier to the United States.

This should cause him to rethink the pace and scope of the changes he is seeking to impose on Venezuela, said Vinay Jawahar, an analyst at Princeton University.

Whether this will happen, however, is unclear. Chavez could never be accused of not having grandiose, ambitious plans and might not be willing to let reality impinge on those.

Chavez still wields enormous power and his supporters dominate Congress, the courts and election authorities.

Soldiers bark his slogan homeland, socialism or death when they snap their salutes. The state oil company spends more on social projects such as building homes than on exploration of some of the biggest deposits outside the Middle East.