The King and Queen of Spain presided over a ceremony also attended by high-ranking Spanish politicians.