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