HAVANA (Reuters) - President Raul Castro warned Cubans on Saturday that the United States was determined to end Cuba’s socialist revolution despite restoring relations and a visit by U.S. President Barack Obama, saying one-party Communism was essential to defend the system.

“We must be alert, today more than ever,” Castro said, speaking in front of a giant portrait of his brother Fidel Castro at the inauguration of the Communist Party’s first congress in five years.

Speaking for over two hours, Castro used a defiant tone that belied the breakthrough between the Cold War enemies. He said Obama’s desire to end U.S. sanctions was welcome but just a change of “method”, in reference to efforts by Washington to bring political change to Cuba ever since the Castro brothers toppled a pro-American government in 1959.

Obama and Castro announced in December 2014 they would end decades of hostility and normalise relations. But on a historic trip to the island last month, Obama angered the government with a speech broadcast directly into Cubans’ homes calling for more political freedom and democracy in the one-party state.

Castro and his lieutenants, many of them in their 70s and 80s, faced some discontent ahead of the congress among younger members who are critical of their slow delivery on promised economic reforms in the past five years and a lack of transparency on discussions.

“The key function of the congress is a message that the Obama visit has not changed anything. To reduce expectations,” said Bert Hoffman, a Latin American expert at the German Institute of Global and Area Studies.

Castro reiterated the party’s commitment to the reforms which he said should be implemented faster. But he said Cuba was not moving towards capitalism, citing China and Vietnam as models, while emphasizing that social ownership and cooperatives were mostly preferable to private property.

He celebrated Cuba’s growing number of self-employed people but cautioned that the United States was seeking to turn them into a opposition force. Obama spent hours talking to small business people and entrepreneurs during his Havana visit.

‘POWERFUL EXTERNAL FORCES’

Cuban President Raul Castro gestures to the audience while waiting for U.S. President Barack Obama to make a speech to the Cuban people, in the Gran Teatro de la Habana Alicia Alonso in Havana, March 22, 2016. REUTERS/Stringer

“We are not naive, and we are aware of powerful external forces that aspire to, as they say, ‘empower’ non-state actors to generate agents of change and finish off the revolution by other means,” he said.

Castro did not detail which reforms would be implemented next, although he singled out Cuba’s complex dual currency system as a major economic distortion that needed to be rectified and emphasized the need for foreign investment.

He said he remained convinced of the benefits of improved relations with the United States and said Cuba was committed to the diplomatic thaw. But he did not believe Obama’s promise that the United States would not impose political or economic change on Cuba.

“The goals are the same, only the methods have changed,” Castro said, adding that U.S. migration policies that encourage Cubans to defect were “a weapon against the revolution.”

“These practices do not correspond to the declared change in policy towards Cuba, and cause difficulties in third countries,” he said.

Migration has surged since the 2014 detente as Cubans take advantage of a U.S. policy that grants them citizenship as soon as they arrive. Bottlenecks of migrants in transit have formed in Central America.

Cuba’s top leaders started their careers as young guerrilla fighters who overthrew a U.S. backed government in 1959, and a few years later repelled the U.S.-backed Bay of Pigs invasion - which the party congress is timed to commemorate.

Castro said the one-party system was the greatest defence against Washington’s past attempts to dominate Cuba.

“If one day they manage to fragment us, that would be the beginning of the end of the revolution, of socialism and independence in our homeland,” he told 1,000 delegates gathered for the congress.

Recalling a conversations with one U.S. official, he said he told “el Americano” that the Democrats and Republicans were so similar that they were like one party.

“It’s the same as if in Cuba we had two parties, Fidel leads one and I lead the other,” he joked to laughter and applause.

Castro is 84 and his top lieutenant in the party, José Ramón Machado Ventura is 85. In a nod to the next generation of leaders, Castro said no one should be more than 60 years old when they join the party’s main decision-making body.

Castro is due to retire as president in 2018 and by the end of the four-day congress it will be clear whether he remains as party leader until 2021, or whether somebody younger takes over the leadership.

Founded in 1965, the Communist Party is seen as more powerful in Cuba than the government. It was formally led by Fidel Castro until 2011, although his younger brother had effectively taken command several years earlier.