 The agreement soon fell apart and, over the next several years, Ferdinand's great general Gonzalo Fernández de Córdoba fought to take Naples from the French, finally succeeding by 1504.Some time before 1502 Andreas Palaiologos, the last exiled claimant to the Byzantine throne of his house, sold his titles and royal and imperial rights to Ferdinand.Those, however, had never been made use of, due to the doubtful nature of the deal.