Sant Feliu de Codines (Catalan pronunciation: [ˈsaɱ fəˈliw ðə kuˈðinəs]) is a municipality in the comarca of Vallès Oriental, Catalonia, Spain. It is located in the north-west corner of the comarca, on the border with comarca of Moianès to the north, and the comarca of Vallès Occidental to the west.
 The name of Sant Feliu first appears in 1059, when the nobleman Mir Geribert and his wife Guisla were named Barons of Montbui by the Count of Barcelona Ramon Berenguer I the Old.[citation needed] These were the first feudal lords, who occupied a barony that extended the length and breadth of an extensive region which includes the present-day municipalities of Sant Feliu, Bigues i Riells, l'Ametlla del Vallès and Santa Eulàlia de Ronçana.
 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 1793 King Charles IV granted the parish of Sant Feliu de Codines the title of Vila, effective December 8, 1799.[citation needed]
 The population grew around the parish church, where the Sagrera 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 own bell 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 new bedroom community by the late nineteenth century. People born in Sant Feliu include: Sebastià Farnés i Badó; Joan Petit i Aguilar; Josep Mumbrú i Vernet of Casa Mumbrú (lo Vendrell); Josep Umbert i Rosàs; Josep Umbert i Ventura, creator of the Roca Umbert Factory; Andreu Codina i Candelas; Josep Parés i Casals; Laia Berenguer i Puget; Agustí Serratacó i Costa, Pere Pladevall i Vallcorba; Nicolau Usart i Furriol; Manel Vila i Valls; Josep Cassart i Valldeoriola; Dionisio Escorsa i Cruells; and Nuria Berengueras i Costa.[citation needed]
 An illustrious character who visited the town was Antoni Gaudí. In Sant Feliu, he left his mark on the design of the banner of the local Orfeó Feliuà, which is on displayto 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 in Vallè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 the philologist Pompeu Fabra. He spent the summer in Can Viladomat, from where he went into exile on January 24, 1939, due to the Spanish 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]
 We must also highlight the passage of politicians Manuel Carrasco i Formiguera (whose name was bestowed on the secondary school of the municipality),[citation needed] Francesc Cambó,[citation needed] and the theologian and philosopher Jaume Balmes (whose name was bestowed on the primary school). Balmes who notably wrote El Criterio in the nearby masia of Prat de Dalt, in Caldes de Montbui.[citation needed]