Over the centuries, Sant Feliu became the most prominent part of the barony, when measured both in number of inhabitants and in artisanal production.[citation needed] This caused the inhabitants of Sant Feliu to consider independence from the barony of Montbui. After many petitions, and taking advantage of a favourable political situation, in 1793King Charles IV granted theparish of Sant Feliu de Codines the title ofVila, effective December 8, 1799.[citation needed]
The population grew around the parish church, where theSagrera neighbourhood was formed (meaning "sacred land"). Currently, this area still retains narrow alleys and some buildings typical of past centuries. Slowly the town grew and other important neighbourhoods of the town center were formed, such as the Serrat de Vic and the Venderia or Revenderia.
Over time an intense rivalry was created between the two neighbourhoods, to the point that the Venderia, in 1796, built its ownbell tower.[citation needed] Since this time, the rivalry between the two neighbourhoods disappeared, and other neighbourhoods and residential areas were also formed until the current village of Sant Feliu de Codines was formed.
The almost exclusive dry climate that Sant Feliu enjoys, its natural environment and the proximity to large cities are the main factors that converted it into a newbedroom community by the late nineteenth century.
An illustrious character who visited the town wasAntoni Gaudí. In Sant Feliu, he left his mark on the design of the banner of the localOrfeó Feliuà, which is on display at the Can Xifreda Municipal Museum.[citation needed] Dr. Bartomeu Robert also enjoyed the good climate of Sant Feliu, to the point that he commented that Sant Feliu was the best town inVallès and recommended to many of his patients to spend long periods to cure their illnesses.[citation needed]
Among other illustrious visitors we must also highlight the passage of thephilologistPompeu Fabra. He spent the summer in Can Viladomat, from where he went into exile on January 24, 1939, due to theSpanish Civil War. In 2016, these events were commemorated by placing a plaque in the house of Can Viladomat, on Agustí Santacruz Street, and with a lecture by the linguist Jordi Mir.[citation needed]