In 1894, the municipality was abolished, but it was reestablished four years later on 13 January 1898. It was reconstituted without Carcavelos, which was annexed to Cascais, while gaining the civil parish of Benfica. In the late 17th and early 18th centuries, several estates and palaces began to be constructed in order to explore agricultural production, principally cereals and vineyards, which supported the growing markets of Lisbon. However, this activity began to decline by the 19th century and was replaced by new industry, supported by the Lisbon-Cascais railway link, first inaugurated in 1889. Large factories began to locate in the municipality, among them the "Fábrica do Papel", the "Fundição de Oeiras", a Lusalite and "Fermentos Holandeses".