How long was the rule of Albert V of Austria
His son Philip the Fair married Joanna the Mad , the heiress of Castile and Aragon , and thus acquired Spain and its Italian , African and New World appendages for the Habsburgs .