Other titles of 'prince' were frequently granted by the kings of Spain, but usually in their capacity as kings of Naples or of Sicily. Such nobles often sojourned at the Spanish court where their titles were acknowledged, but rarely were Spanish nobles the recipients of a title of prince in Spain. The most notable exceptions were the title Prince of the Peace conferred in 1795 on Manuel Godoy, a favourite of the Spanish king and the title Prince of Vergara conferred to Baldomero Espartero. And Joseph Bonaparte conferred the title to be hereditary on his grandchildren in both the male and female line, Although legislation of the twentieth century ended official recognition of the title of prince outside the royal bloodline family, it did allow the holder of a princedom to have the dignity converted to a ducal title of the same name.