 Until the 18th century raiding armies, earthquakes, famines, floods and pirate attacks ravaged the city.In this gloomy situation and due to a weakened local economy, fishing took on great importance, a fact testified by the construction of structures such as the fish market and the lighthouse.In 1797, Rimini, along with the rest of Romagna, was affected by the passage of the Napoleonic army and became part of the Cisalpine Republic.