Montemayor is a municipality located in the province of Córdoba, Spain. According to the 2006 census (INE), the city has a population of 3,936 inhabitants.