Abu ʿAmer Muḥammad ibn ʿAbdullāh ibn Abi ʿAmer al-Maʿafiri (Arabic: أبو عامر محمد بن عبد الله بن أبي عامر المعافري), nicknamed al-Manṣūr (Arabic: المنصور, "the Victorious"), which is often Latinized as Almanzor in Spanish, Almansor in Catalan and Almançor in Portuguese (c. 938 – 8 August 1002), was a Muslim Arab Andalusi military leader and statesman. As the chancellor of the Umayyad Caliphate of Córdoba and hajib (chamberlain) for Caliph Hisham II, Almanzor was effectively ruler of Islamic Iberia.
Born in Turrush to a family of Yemeni Arab origin with some juridical ancestors, ibn Abi ʿĀmir left for Córdoba when still young to be trained as a faqīh. After a few humble beginnings, he joined the court administration and soon gained the confidence of Subh, mother of the children of Caliph Al-Hakam II. Thanks to her patronage and his own efficiency, he quickly expanded his role.