While noble titles historically have followed the rule of male-preference primogeniture, a Spanish law came into effect on October 30, 2006, after approval by both houses of the "Cortes", establishing the inheritance of hereditary noble titles by the firstborn regardless of gender.