 Henry II was the illegitimate son of Alfonso XI.He was made count of Trastámara.The Crown of Castile existed in its own right within the Spanish crown and with its own law until the arrival of the Bourbon dynasty after the War of Spanish Succession.