Sant Feliu de Codines is a municipality in the comarca of Vallès Oriental, in the Catalonia region of Spain. It lies in the north-west corner of the comarca, on the border with the comarca of Moianès to the north and the comarca of Vallès Occidental to the west.
Its position places it at the meeting point of three Catalan comarques, in the inland area north of Barcelona. The surrounding territory is part of the Vallès Oriental, a comarca whose administrative centre is Granollers.