Real Madrid star, Spain midfielder Xabi Alonso retires from international football

Real Madrid Xabi Alonso right, duels for the ball with Atletico Madrid's Gabi during a Spanish Super Cup soccer match at the Vicente Calderon stadium in Madrid, Spain, Friday, Aug. 22, 2014. (AP Photo/Daniel Ochoa de Olza) (The Associated Press)

From left, Real's James Rodriguez, Gareth Bale, goalkeeper Iker Casillas, Marcelo and Xabi Alonso pose for the photographers during the presentation of the Real Madrid's new Champions League kit at the Santiago Bernabeu stadium in Madrid, Spain, Tuesday, Aug. 26, 2014. (AP Photo/Andres Kudacki) (The Associated Press)

Real Madrid midfielder Xabi Alonso, one of the key figures in Spain's dominant era that included two European championships and a World Cup title, says he is retiring from international football.

The 32-year-old Alonso announced the decision on Twitter on Wednesday, saying it had been "an enormous honor" to play for Spain for 11 years.

The former Liverpool midfielder scored 16 goals in 114 Spain appearances. He started every game at the 2010 World Cup, helping Spain win the tournament for the first time.

He was also part of the teams that won the 2008 and 2012 European Championships, and the squad that was dumped out of this year's World Cup in Brazil in the group stage.

He joins Barcelona midfielder Xavi Hernandez, another key member of those teams, in retiring from international play after Brazil.