sentences:  In the 19th century, the city walls were torn down and it slowly began to expand, a process interrupted by the War of Independence against Napoleon (1804–14) and the Carlist Wars (1833–63).In 1833 Castelló became the capital of the newly constituted province.In the second half of the 19th century, the city again began to expand, marked by the arrival of the railway, the enlargement of the port and the construction of representative buildings (Provincial Hospital, Casino, Theater) and parks.