In 2011, it had a population of 41,854. It covers an area of 749.34 km2 with a population density of 55.85 inhabitants/km2, and is situated at an altitude of 575 meters. Antequera is the most populous city in the interior of the province and the largest in area. It is the twenty-second largest in Spain. The city is located 45 km from Málaga and 115 km from Córdoba. The cities are connected by a high speed train and the A-45 motorway. Antequera is 160 km from Seville and 102 km from Granada, which is connected by motorway A-92 and in the near future, by the high-speed Transverse Axis Rail.
Due to its strategic position in transport communications, with four airports located approximately one hour away and the railway running from the Port of Algeciras, Antequera is emerging as an important centre of transportation logistics, with several industrial parks, and the new Logistics Centre of Andalusia (Centro Logístico de Andalucía). In addition, the Vega de Antequera, watered by the river Guadalhorce, is a fertile agricultural area that provides cereals, olive oil, and vegetables in abundance.
The nearby natural reserve of El Torcal, famous for its unstable limestone rocks, forms one of the most important karst landscapes in Europe. It has an extensive archaeological and architectural heritage, highlighted by the dolmens of Menga, Viera, and El Romeral, and numerous churches, convents, and palaces from different periods and in different styles. Antequera played a role in the rise of Andalusian nationalism: it was the site of the drafting of the Federal Constitution of Antequera in 1883, and also of the so-called Pact of Antequera in 1978, which led to the achievement of autonomy for Andalusia. It was considered as a possible headquarters of the Andalusian government, but lost the vote in favor of Seville.
Antequera lies 47 km north of the city of Málaga on the A45 highway, at the foot of the mountain ranges of El Torcal and Sierra de la Chimenea, 575 m above mean sea level. It occupies a commanding position overlooking the fertile valley bounded to the south by the Sierra de los Torcales, and to the north by the Guadalhorce River. At 817 km², the municipality is the largest, in terms of area, in the province of Málaga and one of the largest in Spain. The population is 41,197 (2002 census).
The saltwater Fuente de Piedra Lagoon, which is one of the few nesting places of the greater flamingo in Europe, and the limestone rock formation of the Torcal, a nature reserve and popular spot for climbers, are nearby. Across the Guadalhorce is Peña de los Enamorados, ("The Lovers' Rock"), named after the legend of two young Moorish lovers from rival clans who threw themselves from the rock while being pursued by the girl's father and his men. This romantic legend was adapted by the English poet Robert Southey for his Laila and Manuel, in which the lovers were a Muslim girl and her father's Christian slave.