Throughout the 17th and 18th centuries, the city was expanded, with a series of walls during the period of the Restoration Wars (1640-1668), encompassing the semicircular front to the Ria Formosa.