The original city went into decline in the Middle Ages, but began to prosper again after the Genoese built a citadel in 1492 to the south of the earlier settlement. After the Corsican Republic was declared in 1755 the Genoese continued to hold several citadels, including Ajaccio, until the French took control of the island.