The Battle of Mecca was an armed skirmish fought in 883 between the forces of the Tulunid ruler of Egypt and Syria, Ahmad ibn Tulun, and those of the Abbasid Caliphate, supported by the Saffarid emirate. The battle took place at Mecca in western Arabia and was fought to determine who would gain guardianship over the city during the hajj. It ended with an Abbasid-Saffarid victory and the expulsion of the Tulunid forces from Mecca.