Aguilar, or in full Aguilar de la Frontera, is a municipality and town in the province of Córdoba, Andalusia, southern Spain, near the small river Cabra, 50 kilometres from the provincial capital, Córdoba, on the Córdoba-Málaga railway. As Ancient Ipagro, it also was an Ancient/medieval bishopric and remains a Latin Catholic titular see.
The population has remained stable during the past hundred years, numbering 13,653 in 2007.