Naples was under French control from 1501 to 1504, when Louis XII, who was also King of France, became King of Naples. He lost the kingdom in 1504, following a coalition formed between Spain and the Holy Roman Empire against him.
The Reign of Louis XII: Unveiling France's Renaissance Monarch