After Frederick II died in 1250, there was trouble in Trani. In the next 300 years, there were wars between the Angevins, Aragon and Venice over who should rule Trani. The city became poorer and less important. Trani was almost destroyed during the French Revolutionary Wars at the end of the 18th century. Many people in the town were against the French Revolution. In March 1799, they rioted and killed many members of the city's most important families. When the French army saw this, they attacked the city on April 1, 1799. The army killed many people and burned Trani's buildings. Over 1000 people died in the riots and the French attack.