The War over Naples was fought by France and Spain between 1502 and 1504. Gonzalo de C rdoba, called El Gran Capit n, distinguished himself for his military skills thanks to his brilliant victories against the French at Cerignola and Garigliano (1503). With the Treaty of Lyon in 1504, the Kingdom of Naples was ceded to Spain, which controlled it for 200 years - until the War of the Spanish Secession. In November 1500, Ferdinand of Spain and Louis XII of France signed the secret Treaty of Granada. This agreement enabled Spain and France to easily conquer and divide the Kingdom of Naples in the years 1501 and 1502. The treaty divided Naples between the two nations. However, disputes arose over the division and the boundaries of the newly conquered territories that soon led to war. Gonzalo Fern ndez de C rdoba, the Spanish Commander in Naples, was aware of the inferior quality of his troops and retreated to Barletta (Apulia). His plan was to await reinforcements from Spain. The French