Альфонсо VIII
James first married, in 1221, Eleanor, daughter of Alfonso VIII of Castile and Eleanor of England. Though he later had the marriage annulled, his one son by her was declared legitimate: