Ferdinand I of Portugal
However the Counts, later Marquesses, have royal ancestry (both Portuguese and Spanish), once they descended from King Ferdinand I of Portugal and from King Henry II of Castile.