 Constitution Square was built in 1817 and the town hall (currently a library) between 1828 and 1832.Housing in the old town was built gradually alongside the rest of the area.The liberal and bourgeois San Sebastián became the capital of Gipuzkoa (instead of Tolosa) until 1823, when absolutists attacked the town again (only 200 inhabitants remained in the town when the offensive troops entered).