The death of King Henry IV of Castile in 1474 set off a struggle for power called the War of the Castilian Succession ( 1475-1479 ) .
This was called the War of the Spanish Succession .