Campogalliano is a comune (municipality) in the Province of Modena in the Italian region Emilia-Romagna, located about 45 km northwest of Bologna and about 8 km northwest of Modena. As of 31 December 2004, it had a population of 8,044 and an area of 35.0 km².
Campogalliano borders the following municipalities: Carpi, Correggio, Modena, Rubiera, San Martino in Rio.