CARACAS, Venezuela (AP) — President Hugo Chavez held an energetic homecoming celebration on Saturday, rallying thousands of supporters from a balcony of the presidential palace after nearly three weeks in Cuba for cancer surgery.

Chavez turned the event into a campaign rally, vowing to win re-election in the Oct. 7 presidential vote and demanding unity from his followers, denouncing a state governor who recently broke ranks with his party as a “traitor to the revolution.”

“This battle is hard and will be hard, but we’ll win it,” said Chavez, who gesticulated energetically as he spoke or listened to expressions of loyalty while standing for more than an hour. The crowd below chanted: “The people are with you!”

Chavez waved, blew kisses and raised a fist when he appeared on the balcony, then took the microphone and sang along with a Venezuelan folk song while a band played.

“Long live Venezuela!” Chavez told the crowd, flanked by his aides. He reiterated that his latest cancer surgery in Cuba had been successful, and said he feels a “commitment to you all to live.”

His supporters cheered, beat drums and waved flags. Some in the crowd wore T-shirts with Chavez’s face emblazoned on them. Others said they’re praying for the president’s health. Many of the president’s supporters said they fully expect Chavez to overcome his illness and win re-election.

“We know the world is worried about President Chavez,” said Carlos Morgado, a 59-year-old artist who has painted murals of the president. But Morgado said he thinks Chavez is looking strong and “he’s also capable of combatting death ... and beating death” after leading a socialist government for 13 years.

Chavez came down firmly on Saturday against Monagas state Gov. Jose Gregorio Briceno, who was suspended from Chavez’s party on Wednesday after making critical remarks about the president of the National Assembly.

“He’s a counterrevolutionary,” Chavez said. “I knew that was going to happen.”

The Venezuelan leader arrived home on Friday night looking haggard but expressing optimism that he will overcome cancer.

Chavez spent three weeks in Cuba, leaving many Venezuelans wondering about his long-term prospects and about how his health will evolve ahead of the election. Chavez has kept secret some details of his illness, such as the type of cancer, spurring speculation.

The president has said his Feb. 26 surgery in Cuba removed a tumor from the same location in the pelvic region where another tumor was removed in June.

After he was diagnosed with cancer, Chavez underwent an initial surgery in June that removed a tumor the size of a baseball.

He then had four rounds of chemotherapy and said tests showed no signs of any cancerous cells. But last month, he announced he was returning to Cuba for surgery to have a lesion removed.

Chavez has described the most recent tumor as measuring about 2 centimeters (0.8 inches). He has declined to identify the precise location where the tumors appeared.

He next plans to undergo radiation therapy, although it’s unclear how soon that will begin.

The 57-year-old leader is seeking another six-year term in the October presidential vote. His rival, 39-year-old state governor Henrique Capriles, has criticized Chavez’s secretive handling of his cancer, saying that if he were president, his health would “be a matter of public knowledge.”

“We welcome home the government’s candidate,” Capriles said while making door-to-door pre-campaign visits in Aragua state. “I wish him good health. He shouldn’t forget that in this contest ahead, at least from our part, what we’re doing is going house-to-house. It’s not insulting anybody.”

Chavez called the opposition “the bourgeoisie.” He referred to Capriles as the candidate of “the Yankees.”

“The beating we’re going to give the Venezuelan right, the beating we’re going to give them, that beating is going to be memorable,” he said.