Cómpeta is a town and municipality in the comarca of Axarquía, in the province of Málaga, part of the autonomous community of Andalusia in southern Spain. It lies approximately 18 kilometres from the coast and 52 kilometres from Málaga, the provincial capital.
The town is situated at 638 metres above sea level in the foothills of La Maroma, and its population is spread over the southern slopes of the Sierra de Almijara.