Gallifa is a municipality in the comarca of the Vallès Occidental in Catalonia, north-eastern Spain. It is located in the inland part of the region, within the province of Barcelona.
Among its notable features is the Castle of Gallifa, a historic structure within the municipality. Gallifa was also the location of the studio of ceramic artist Josep Llorens i Artigas and his son.