
Córdoba · Andalucía
Aguilar de la Frontera
- Province
- Córdoba
- Declared
- 1966
- Status
- Conjunto Histórico
- Population
- 13,130
- Elevation
- 280 m
Aguilar de la Frontera is a heritage town in the province of Córdoba, Andalucía, Spain. It was designated a Conjunto Histórico (Spain's national heritage designation for historic ensembles) in 1966. Population 13,130 (2025), elevation 280m.
A hilltop town in Córdoba province where Ibero-Roman ruins, a medieval castle, and baroque churches trace two thousand years of contested history on the edge of the old Granadan frontier.
Key facts
- Province
- Córdoba
- Heritage status
- Conjunto Histórico (declared 1966)
- Population
- 13,130 (2025)
- Elevation
- 280 m
History of Aguilar de la Frontera
Aguilar de la Frontera stands on the site of the ancient Ibero-Roman settlement of Ipagrum, which was caught up in the Battle of Munda, the conflict between the supporters of Caesar and those of Pompey. The town's most ancient remains date from this period: a large-scale necropolis. The name Ipagrum is disputed, some read it as meaning "high field," others trace it to the Greek word for horse, *hippos*, a theory given some weight by the fact that a place called Llano de los Caballos still exists within the town's boundaries today.
The Muslim conquest brought a new name, Bulay or Poley, possibly also derived from Greek. In 891, the town's Christian inhabitants and their rebel allies were defeated by the forces of Emir Abdallah, and Poley passed into the jurisdiction of the cora of Cabra. Later it was absorbed into the Zirid kingdom of Granada.
Fernando III of Castile took the town in 1240, granting it as a lordship to a Portuguese nobleman of Toledan family, Gonzalo Yáñez d'Ovinhal. The name Aguilar came from the family name of Gonzalo's mother, bestowed by Alfonso X in recognition of services rendered. The suffix "de la Frontera" reflects the town's position close to the Granadan frontier through the later Middle Ages.
At the start of Pedro I's reign, the lord Alfonso Fernández Coronel rebelled against the king. When the revolt was crushed, Pedro I renamed the town Monterreal and changed its eagle coat of arms to the image of a king with a drawn sword. After the Castilian civil wars between Pedro I and Enrique II, the town passed to Gonzalo Fernández de Córdoba.
The 17th and 18th centuries brought population decline through epidemic disease. In 1912 the hamlet of Zapateros split off to become the separate municipality of Moriles. The Spanish Civil War left deep wounds here.
From July 1936, forces of the military uprising carried out violent repression, leaving mass graves, some still unexcavated, with death toll estimates ranging from 64 recorded in civil registers to over 200 according to other sources. The last Republican mayor, José María León Jiménez, was among those killed. A local school served as a Republican prisoner concentration camp between at least June 1938 and June 1939.
Five Aguilar exiles died in Nazi concentration camps in Germany.
Heritage & Monuments
Aguilar's historic centre has been a protected Conjunto Histórico Artístico since 1974, and churches from the 16th and 17th centuries are scattered across the old town. The most distinctive monument is the Plaza de San José, notable for its unusual polygonal ground plan.
The ruins of the old castle, originally the stronghold of the Andalusian rebel leader Omar ben Hafsún, stand as a reminder of the town's medieval past. It later came into the hands of Gonzalo Fernández de Córdoba y Rojas, great-great-grandfather of El Gran Capitán. The castle towers run along the ridge of the hill, with the white-walled town spread out below them. The best panoramic view of this arrangement is from the cemetery on a nearby hill.
Built in 1530 to a design by Hernán Ruiz in Gothic-Mudéjar style, the Church of Nuestra Señora del Soterraño is the oldest church in Aguilar. It was raised over a cave where, according to tradition, an image of the Virgin of unknown origin was found, and it sits on the site of an earlier church called Santa María de la Mota, constructed against the outer walls of the castle on a stepped platform. Inside, the baroque chapel of the sagrarium is particularly notable, as are its doors, which are carved from tortoiseshell and agate, and the chapel of Jesús Nazareno.
The Convent of Las Descalzas, completed in 1683, is considered one of the most significant baroque buildings in the Córdoba region. It has a Latin-cross plan, a dome over the crossing, and elaborate painted and plasterwork decoration throughout its interior.
The Church of El Carmen dates from 1590 and was originally a Carmelite convent church, later remodelled. It holds a notable Ecce Homo in the style of Alonso de Mena from the early 17th century, along with several wooden sculptures.
The Church of Santa Brígida, on the street of the same name, served as a maternity hospital between the 1950s and 1970s. It has two baroque doorways flanking a neoclassical central tower, and has been restored. A short distance from the town centre, the Ermita del Señor de la Salud was built in 1611, possibly in response to a late-16th-century epidemic. It has a stone doorway with a semicircular arch and columns.
Near the town, a Roman water mine feeds the Fuente del Aceituno, a spring about 800 metres away on the road to Montalbán, which still supplies fresh water today.
Where to eat in Aguilar de la Frontera
Ratings & restaurant data from Google.
Regional food & drink
Andalucía is known for Gazpacho, Salmorejo and Pescaíto frito, among 5 regional specialities.
Watch: Sherry (Jerez)
Fiestas in Aguilar de la Frontera
Dates recur annually but can shift by a few days. Confirm with the ayuntamiento before planning a trip around one.
- San Cristóbal29 September
Location
Quick answers
Is Aguilar de la Frontera worth visiting?▾
A hilltop town in Córdoba province where Ibero-Roman ruins, a medieval castle, and baroque churches trace two thousand years of contested history on the edge of the old Granadan frontier.
Why is Aguilar de la Frontera a heritage town?▾
Aguilar de la Frontera is officially designated a Conjunto Histórico, declared in 1966, Spain's national heritage designation for historic ensembles.
What is the traditional food in Andalucía?▾
Andalucía is known for Gazpacho, Salmorejo, Pescaíto frito and Jamón ibérico. You'll find these regional specialities in and around Aguilar de la Frontera.
When are the fiestas in Aguilar de la Frontera?▾
Aguilar de la Frontera celebrates San Cristóbal (29 September). Dates recur annually but can shift by a few days.
Which heritage towns are near Aguilar de la Frontera?▾
Nearby heritage towns include Montilla, Lucena, Zuheros and La Carlota.
How big is Aguilar de la Frontera?▾
Aguilar de la Frontera has a population of about 13,130 (2025), and sits at 280 m above sea level.
Nearby heritage towns
A Córdoba town whose roots stretch from prehistoric flint-knappers to the birthplace of Spain's greatest Renaissance general, set among the vineyards of Andalucía.
A city in Córdoba province where Julius Caesar once fought, where Jews built a medieval quarter known as the Pearl of Sepharad, and where Granada's last emir ended up imprisoned in a castle tower.
Perched on a rocky outcrop in Córdoba province, Zuheros pairs a Moorish castle and a cave with fossil remains with the unhurried whitewashed streets of a classic Andalusian hill village.
A planned Enlightenment town built from scratch in 1767 to populate the wilds of Córdoba, its grid streets, Baroque parish church, and Central European surnames still tell the story of King Carlos III's grand colonial experiment.
A Córdoba hill town where Iberian lions, Moorish walls, and a castle-crowned old quarter trace more than two thousand years of continuous human settlement.
A hilltop town in Sevilla province where a walled Alcázar, a 40-metre Baroque tower, and a string of convents and churches crown the high ground above an old Roman road.
A city of baroque towers and Roman foundations on the Genil river in Sevilla province, where centuries of conquest and devotion left behind more convents per street than almost anywhere else in Andalucía.
Visiting from a nearby city?
Aguilar de la Frontera makes a great day trip from:
Last updated 31 August 2026.