{
 "id": "event/battle-of-tarifa-741",
 "class": "event",
 "slug": "battle-of-tarifa-741",
 "label": {
  "ar": "واقعة طريف وتمحيص المسلمين"
 },
 "summary": {
  "ar": "أجاز السلطان أبو الحسن المريني في أسطوله وخاصته آخر سنة 740هـ ونزل بساحة طريف فوافاه سلطان الأندلس أبو الحجاج يوسف بن السلطان أبي الوليد بعسكر الأندلس فأحاطوا بطريف نطاقاً واحداً ونصبوا عليها الآلات، وجهز الطاغية أسطولاً اعترض به الزقاق فقطع المرافق عن المعسكر وطال ثواهم ففنيت أزودتهم ووهن الظهر، واحتشد الطاغية أمم النصرانية وظاهره البرتغال صاحب أشبونة فجاء معه في قومه، ودسّ إلى طريف جيشاً كميناً دخلوها ليلاً، فلما نشبت الحرب في اليوم التالي برز الجيش الكمين على ظهور المسلمين فاختل مصافهم وارتدوا على أعقابهم، وقتل النصارى النساء اللواتي دافعن عن أنفسهن وخلصوا إلى حظايا السلطان عائشة بنت عمه أبي يحيى بن يعقوب وفاطمة، وكانت هزيمة تمحّصت بها جموع المسلمين وعزّ بها ملك الطاغية على ثغور الأندلس {cite:tarikh-ibn-khaldun-ibar p. 1965-1966}.",
  "en": "Sultan Abu al-Hasan crossed in late 740 and encamped before Tarifa; Yusuf I of Granada joined him with the Andalus army, they ringed the town and set engines — but the Taghiya's second fleet sealed the Strait, starved the camp, and he mustered the Christian nations with Afonso of Portugal at his side; a hidden force he slipped into Tarifa by night burst on the Muslim rear as battle joined, their lines dissolved, the royal women were taken — Aisha the sultan's cousin and Fatima among them — and the Christian king's power over the Andalus frontier was sealed {cite:tarikh-ibn-khaldun-ibar p. 1965-1966}."
 },
 "stub": false,
 "wings": [
  "time"
 ],
 "regions": [
  "andalus-europe",
  "maghreb"
 ],
 "periods": [
  "period/mongol-post-mongol"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "span": {
  "earliest": 1340.8289697940409,
  "latest": 1340.8317077010163
 },
 "display": {
  "start": {
   "edtf": "1340-10-30",
   "hijri": "0741-03-09",
   "calendar": "julian",
   "precision": "day",
   "status": "tradition",
   "derived": true,
   "note": "الواقعة المشهورة في ربيع الأول 741هـ؛ التحويل مشتق {cite:tarikh-ibn-khaldun-ibar p. 1965}."
  },
  "end": {
   "edtf": "1340-10-30",
   "hijri": "0741-03-09",
   "calendar": "julian",
   "precision": "day",
   "status": "tradition",
   "derived": true,
   "note": "الواقعة المشهورة في ربيع الأول 741هـ؛ التحويل مشتق {cite:tarikh-ibn-khaldun-ibar p. 1965}."
  }
 },
 "data": {
  "kind": "battle",
  "date": {
   "start": {
    "edtf": "1340-10-30",
    "hijri": "0741-03-09",
    "calendar": "julian",
    "precision": "day",
    "status": "tradition",
    "derived": true,
    "note": "الواقعة المشهورة في ربيع الأول 741هـ؛ التحويل مشتق {cite:tarikh-ibn-khaldun-ibar p. 1965}."
   }
  },
  "provenance": {
   "layer": "own-research",
   "source": "ابن خلدون، العبر — الخبر عن واقعة طريف وتمحيص المسلمين (طبعة هيليوبوليس)",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "model": "swe-2-high",
   "run": "lib-ibar-east-24"
  },
  "sources": [
   "source/tarikh-ibn-khaldun-ibar"
  ],
  "status": {
   "review": "draft",
   "completeness": 1,
   "generated_by": "Devin (SWE-2 High)"
  }
 },
 "prose": {
  "ar": {
   "sections": [
    {
     "heading": "موجز",
     "markdown": "وقعة [[place/tarifa|طريف]] التي سماها ابن خلدون «واقعة طريف وتمحيص المسلمين». التقى فيها سلطان المغرب [[person/abu-al-hasan-al-marini|أبو الحسن المريني]] وسلطان الأندلس [[person/yusuf-i-nasrid|أبو الحجاج يوسف]] بجيش ملك قشتالة [[person/alfonso-xi-castile|ألفونسو الحادي عشر]]، فانتهت بهزيمة المسلمين. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}"
    },
    {
     "heading": "قبل المعركة",
     "markdown": "عبر أبو الحسن في أسطوله آخر سنة 740هـ ونزل بساحة طريف. وجاءه أبو الحجاج بعسكر الأندلس، فأحاطوا بالمدينة ونصبوا عليها الآلات. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}\n\nجهز الجانب النصراني أسطولاً اعترض الزقاق وقطع المرافق عن المعسكر، فطال مقام المسلمين وفنيت أزوادهم. وانضم إلى ملك قشتالة صاحب أشبونة من البرتغال. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}"
    },
    {
     "heading": "المعركة",
     "markdown": "يروي ابن خلدون أن جيشاً كمينياً دخل طريف ليلاً. فلما نشبت الحرب في اليوم التالي برز على ظهور المسلمين، فاختل صفهم وارتدوا. وقُتلت نساء دافعن عن أنفسهن، ووصل النصارى إلى حظايا السلطان. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}\n\nيصف ابن خلدون الهزيمة بأنها «تمحيص» للمسلمين، ويذكر أن ملك قشتالة عزّ بها على ثغور الأندلس. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}\n\nالتاريخ الميلادي مشتق من الهجري."
    }
   ],
   "frontmatter": {
    "id": "event/battle-of-tarifa-741",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   }
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "The battle of [[place/tarifa|Tarifa]], which Ibn Khaldun calls \"the battle of Tarifa and the testing of the Muslims\". In it the sultan of the Maghrib, [[person/abu-al-hasan-al-marini|Abu al-Hasan al-Marini]], and the sultan of al-Andalus, [[person/yusuf-i-nasrid|Abu al-Hajjaj Yusuf]], met the army of the king of Castile, [[person/alfonso-xi-castile|Alfonso XI]], and it ended in the defeat of the Muslims. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}"
    },
    {
     "heading": "Before the battle",
     "markdown": "Abu al-Hasan crossed with his fleet at the end of 740 AH and camped at the square of Tarifa. Abu al-Hajjaj came to him with the army of al-Andalus, and they surrounded the town and set up the siege engines. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}\n\nThe Christian side sent out a fleet that blocked the strait and cut off the supplies to the camp, so the Muslims' stay lengthened and their provisions ran out. The lord of Lisbon of Portugal joined the king of Castile. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}"
    },
    {
     "heading": "The battle",
     "markdown": "Ibn Khaldun relates that an ambush force entered Tarifa by night. When the fighting broke out the next day, it appeared on the backs of the Muslims, their line was broken, and they retreated. Women who defended themselves were killed, and the Christians reached the concubines of the sultan. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}\n\nIbn Khaldun describes the defeat as a \"testing\" of the Muslims, and mentions that the king of Castile grew strong by it over the frontiers of al-Andalus. {cite:tarikh-ibn-khaldun-ibar p.1965-1966}\n\nThe Gregorian date is derived from the Hijri year."
    }
   ],
   "frontmatter": {
    "id": "event/battle-of-tarifa-741",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   }
  }
 },
 "degree": 8,
 "contemporaries": [],
 "connections": [
  {
   "to": "person/alfonso-xi-castile",
   "type": "had_participant",
   "inverse": true,
   "note": "ملك قشتالة الظافر بواقعة طريف."
  },
  {
   "to": "person/abu-al-hasan-al-marini",
   "type": "had_participant",
   "inverse": true,
   "role": "سلطان المغرب المهزوم",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  {
   "to": "person/yusuf-i-nasrid",
   "type": "had_participant",
   "inverse": true,
   "role": "سلطان الأندلس المهزوم",
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  },
  {
   "to": "place/tarifa",
   "type": "occurred_at",
   "inverse": false,
   "sources": [
    "source/tarikh-ibn-khaldun-ibar"
   ]
  }
 ],
 "related": [
  "event/battle-of-the-strait-740",
  "event/fall-of-algeciras-744",
  "event/kairouan-disaster-748",
  "event/marinid-entry-tunis-748",
  "person/abu-al-hasan-nasrid",
  "person/abu-inan-faris",
  "person/muhammad-v-nasrid",
  "polity/emirate-of-granada"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}