Cuban President Raul Castro announced on Sunday he will step down from power after his second term ends in 2018, and the new parliament named a 52-year-old rising star to become his first vice president and most visible successor.

"This will be my last term," Castro, 81, said shortly after the National Assembly elected him to a second five-year tenure.

In a surprise move, the new parliament also named Miguel Diaz-Canel as first vice president, meaning he would take over if Castro cannot serve his full term.

Diaz-Canel is a member of the political bureau who rose through the Communist Party ranks in the provinces to become the most visible possible successor to Castro.

Raul Castro starts his second term immediately, leaving him free to retire in 2018, aged 86.

Former President Fidel Castro joined the National Assembly meeting on Sunday, in a rare public appearance. Since falling ill in 2006 and ceding the presidency to his brother, the elder Castro, 86, has given up official positions except as a deputy in the National Assembly.

The new government will almost certainly be the last headed up by the Castro brothers and their generation of leaders who have ruled Cuba since they swept down from the mountains in the 1959 revolution.

Cubans and foreign governments were keenly watching whether any new, younger faces appeared among the Council of State members, in particular its first vice president and five vice presidents.

Their hopes were partially fulfilled with Diaz-Canel's ascension. He replaces former first vice president, Jose Machado Ventura, 82, who will continue as one of five vice presidents.

Commander of the Revolution Ramiro Valdes, 80, and Gladys Bejerano, 66, the comptroller general, were also re-elected as vice presidents.

Two other newcomers, Mercedes Lopez Acea, 48, first secretary of the Havana communist party, and Salvador Valdes Mesa, 64, head of the official labor federation, also earned vice presidential slots.

Esteban Lazo, a 68-year-old former vice president and member of the political bureau of the Communist Party, left his post upon being named president of the National Assembly on Sunday. He replaced Ricardo Alarcon, who served in the job for 20 years.

Six of the Council's top seven members sit on the party's political bureau which is also lead by Castro.

Castro's announcement came as little surprise to Cuban exiles in Miami.

"It's no big news. It would have been big news if he resigned today and called for democratic elections," said Alfredo Duran, a Cuban-American lawyer and moderate exile leader in Miami who supports lifting the U.S. trade embargo against Cuba. "I wasn't worried about him being around after 2018," he added.

The National Assembly meets for just a few weeks each year and delegates its legislative powers between sessions to the 31-member Council of State, which also functions as the executive through the Council of Ministers it appoints.

Eighty percent of the 612 deputies, who were elected in an uncontested vote February 3, were born after the revolution.