Ferdinando was the fifth son of Cosimo I de ' Medici , Grand Duke of Tuscany and Eleonora di Toledo . Ferdinando was the fifth son of Cosimo I de ' Medici , Grand Duke of Tuscany and Eleonora di Toledo , the daughter of Don Pedro Alvarez de Toledo , the Spanish viceroy of Naples .