 A compromise was forged between Philip and Ferdinand, which gave Ferdinand a continued role in Castile.Ferdinand had served as the latter's regent during her absence in the Netherlands, ruled by her husband Archduke Philip.Ferdinand attempted to retain the regency permanently, but was rebuffed by the Castilian nobility and replaced with Joanna's husband.