In November 1347 Louis set out for Naples with some 1,000 soldiers (Hungarians and Germans), mostly mercenaries. When he reached the border of Joanna’s kingdom, he had 2000 Hungarian knights, 2000 mercenary heavy cavalry, 2000 Cuman horse archers and 6000 mercenary heavy infantry. Joanna in the meantime had married her cousin Louis of Taranto and had signed a peace with Naples' traditional enemy, the Kingdom of Sicily. The army of Naples, 2700 knights and 5000 infantrymen, was led by Louis of Taranto. On January 11, 1348 in the Battle of Capua the king of Hungary defeated the army of Louis of Taranto. Four days later the queen repaired to Provence, while her husband followed soon afterwards. All the kingdom's barons swore loyalty to the new ruler as he marched to Naples from Benevento. While visiting Aversa, where his brother had been murdered, Louis had Charles of Durazzo assassinated in revenge by his condottiero. The Neapolitans, who had quickly grown unhappy with the severe Hungarian rule, called back Joan, who paid for her return expedition by selling her rights on Avignon to the popes. She landed near Naples and easily captured it, but the Hungarian commander Ulrich von Wolfart commanded a strong resistance in Apulia. Joanna and Louis would await a new trial on Andrew's assassination, to be held in Avignon. The verdict was Joanna's acquittal from any charge in January 1352, and a peace was signed with Hungary on March 23, 1352. Ultimately, 37 years later, Louis' kinsman Charles III of Naples conquered Naples with Hungarian aid and put Joanna to death.