The Battle of Khaybar, fought in 629 CE (7 AH in the Islamic calendar), stands as a pivotal moment in early Islamic history, marking a decisive step in the consolidation of Muslim power in the Arabian Peninsula. This prolonged siege, waged between the Muslim community led by the Prophet Muhammad and the Jewish tribes of the Khaybar oasis, was a complex interplay of military strategy, political necessity, and religious conviction. At its core was Ali ibn Abi Talib, known as Haider (“the Lion”), whose extraordinary courage and leadership secured a Muslim victory. Nearly fourteen centuries later, the battle’s legacy resonates, as evidenced by Iranian Supreme Leader Ayatollah Ali Khamenei’s invocation of Ali’s triumph in a June 18, 2025, X post, framing contemporary geopolitical tensions within this historical narrative. This article provides a comprehensive exploration of the Battle of Khaybar, detailing its historical context, causes, key events, Ali’s role, outcomes, and modern significance, grounded in historical sources and contemporary perspectives.

Table of Contents
Historical Context: Arabia in the 7th Century
In the early 7th century, the Arabian Peninsula was a fragmented region of tribal alliances, trade networks, and religious diversity. Polytheistic Bedouin tribes dominated the desert, while Jewish and Christian communities thrived in oases and urban centers. The Jewish tribes of Khaybar, located 150 kilometers north of Medina in present-day Saudi Arabia, were among the region’s most prosperous and militarily capable groups. Khaybar was a fertile oasis, renowned for its date palm groves, advanced irrigation, and strategic position on the trade route to Syria. Its inhabitants, primarily Jewish tribes like the Banu Nadir and their allies, lived in eight to ten fortified strongholds, such as Na’im, Qamus, and al-Watih, constructed with stone and mud brick on hills or basalt rocks, surrounded by cultivated fields.

The rise of Islam in Medina, following the Prophet Muhammad’s migration (Hijra) from Mecca in 622 CE, introduced a transformative force. The Muslim community, initially a small, persecuted group, grew into a nascent state under Muhammad’s leadership. The Constitution of Medina (622 CE) aimed to unify Muslims, Jews, and other residents through a mutual defense pact, granting Jewish tribes autonomy in religious and internal affairs. However, political and religious differences led to tensions with Medina’s Jewish tribes—the Banu Qaynuqa, Banu Nadir, and Banu Qurayza.
The Banu Qaynuqa were expelled in 624 CE for violating the constitution by challenging Muslim authority. The Banu Nadir, led by Huyayy ibn Akhtab, faced expulsion in 625 CE after allegedly plotting to assassinate the Prophet. Many resettled in Khaybar, joining other Jewish tribes and intensifying opposition to the Muslims. The most significant breach occurred during the Battle of the Trench (627 CE), when the Banu Qurayza allegedly conspired with the Quraysh and their allies (the Confederates) to attack Medina. The Banu Nadir, now in Khaybar, orchestrated this alliance, with Huyayy inciting the Banu Qurayza to betray their pact. After the Muslim victory, the Banu Qurayza faced severe consequences, and many survivors joined Khaybar, transforming the oasis into a center of resistance.
These events set the stage for the Battle of Khaybar. The Jewish tribes’ wealth, military resources, and alliances with tribes like the Banu Ghatafan posed a persistent threat to Medina, necessitating a Muslim response.
Causes of the Battle
The Battle of Khaybar was driven by a convergence of strategic, economic, political, and religious factors:
- Jewish Hostility and Alliances
The Banu Nadir’s leaders, including Huyayy ibn Akhtab, Sallam ibn Abi al-Huqayq, and Kinanah ibn Abi al-Huqayq, actively opposed the Muslims. Their role in the Battle of the Trench, where they bribed the Banu Ghatafan with half of Khaybar’s harvest to secure 2,000 fighters, underscored their intent to destabilize Medina. Their alliances with hostile tribes remained a threat. - Economic Incentives
Khaybar’s agricultural wealth, particularly its date production, was a coveted resource. Controlling the oasis would bolster the Muslim economy and weaken their adversaries’ financial base. - Strategic Necessity
Khaybar’s fortified strongholds and strategic location made it a potential staging ground for attacks on Medina. Neutralizing Khaybar was essential to secure Medina’s northern frontier and protect trade routes. - Betrayal of Agreements
The Jewish tribes’ repeated violations of agreements, such as the Constitution of Medina and their Confederate alliance, eroded trust. The Prophet viewed the campaign as a response to these betrayals. - Propagation of Islam
The Muslim campaigns aimed to spread Islam’s message. The Prophet instructed Ali to invite the Jews to Islam before combat, reflecting a goal of persuasion alongside military objectives.

The campaign followed the Treaty of Hudaybiyyah (628 CE), which secured a truce with the Quraysh, allowing the Muslims to address external threats. Khaybar thus represented a preemptive strike and a strategic move to strengthen the Islamic state.
The Muslim Campaign: Strategy and Execution
The Battle of Khaybar unfolded in Muharram and Safar, 7 AH (March–April 629 CE). The Muslim army, numbering approximately 1,400 fighters, including 200 horsemen, marched from Medina under the Prophet Muhammad’s command. Despite facing an estimated 10,000–14,000 Jewish defenders, the Muslims employed strategic maneuvers to gain the upper hand.

The Prophet positioned the army between Khaybar and the Banu Ghatafan, preventing reinforcements from reaching the Jews. Approaching at night, the Muslims camped near the oasis, catching the defenders off guard. The Jewish forces, led by commanders like Marhab ibn al-Harith and Kinanah ibn Abi al-Huqayq, retreated into their fortresses, relying on their fortifications’ strength, which included water and food supplies for prolonged sieges.
The Siege of Khaybar: A Test of Endurance
The battle was a series of sieges targeting Khaybar’s fortresses, beginning with Na’im. The defenders’ strongholds, equipped with archers and warriors, posed formidable challenges. Initial assaults led by companions like Abu Bakr and Umar ibn al-Khattab failed to breach the fortifications, as the Jews avoided open combat. The siege, lasting nearly a month, tested the Muslims’ resolve.
An early incident involved Marhab, a renowned Jewish knight, issuing a challenge for single combat. Hazrat Amir ibn al-Akwa accepted but was martyred, highlighting the defenders’ strength and impacting Muslim morale.
Ali ibn Abi Talib’s Decisive Intervention
As the siege faltered, the Prophet Muhammad sought a leader to break the stalemate, declaring:
Tomorrow, I will give the flag to a man who loves Allah and His Messenger, and whom Allah and His Messenger love. He will not return until Allah grants victory through his hands.

This prophecy pointed to Ali ibn Abi Talib, the Prophet’s cousin and son-in-law, known as Haider for his lion-like courage. Ali, sidelined earlier due to an eye ailment, was miraculously healed when the Prophet applied saliva to his eyes, symbolizing divine favor. Entrusted with the Muslim standard, Ali led the assault on Qamus, Khaybar’s strongest fortress.
Ali ibn Abi Talib: The Lion of Khaybar
Born in 601 CE, Ali ibn Abi Talib was among Islam’s earliest converts and a member of the Banu Hashim clan. His marriage to Fatimah, the Prophet’s daughter, solidified his familial ties. Ali’s reputation as a warrior was established in battles like Badr, Uhud, and the Trench, where he displayed unmatched bravery. His epithet, Haider, and his sword, Zulfiqar, became symbols of his fierce spirit.
Duel with Marhab
Ali’s most celebrated feat was his duel with Marhab ibn al-Harith, Qamus’s commander. Marhab, a towering warrior, emerged chanting:
Khaybar knows that I am Marhab, a fully armed and well-tried valorous warrior when war comes spreading its flames.
Ali responded:
I am the one whose mother named him Haider, like a lion of the forest with a terror-striking countenance.
In the ensuing duel, Ali struck Marhab with Zulfiqar, cleaving through his helmet and skull, killing him instantly. Some accounts describe the blow as splitting Marhab’s body, demoralizing the defenders and galvanizing the Muslims.

Uprooting the Gate of Qamus
Another iconic moment was Ali’s uprooting of Qamus’s massive gate, reportedly requiring 40 men to operate. As the Jews sealed the fortress, Ali lifted the gate, broke it from its hinges, and used it as a shield, enabling the Muslims to storm Qamus. Islamic tradition, particularly Shia sources, attributes this feat to divine assistance, with Ali stating:
By Allah, when I uprooted the gate of Khaybar and threw it behind me to a distance of forty cubits, it was not my physical strength.
This act symbolized Ali’s physical and spiritual strength, becoming a cornerstone of his legacy. The fall of Qamus marked a turning point, leading to the capture of fortresses like al-Watih and al-Sulalim.

Strategic Leadership
Beyond combat, Ali inspired the Muslim forces, maintained discipline, and followed the Prophet’s instructions to invite the Jews to Islam before fighting. His tactical acumen ensured the campaign’s success, solidifying his status as a military and spiritual leader.
The Fall of Khaybar and Surrender Terms
After approximately 20 days, the Jewish tribes, weakened by Qamus’s fall and subsequent fortresses, sought surrender. Led by Kinanah ibn Abi al-Huqayq, they negotiated with the Prophet, who granted lenient terms. The Jews were allowed to remain in Khaybar, continue farming, and pay half their produce (jizya) to the Muslims in exchange for protection and religious freedom. The agreement included a clause allowing expulsion for violations, later enforced by Caliph Umar in 642 CE.
The Muslims seized the Jews’ weapons and treasures, bolstering their treasury. The Prophet’s emphasis on justice set a precedent for dhimmi (protected non-Muslim) status in Islamic law.

Casualties and Outcomes
The battle resulted in approximately 15 Muslim martyrs and 93 Jewish deaths, reflecting the siege’s intensity. The Muslim victory had far-reaching consequences:
- Economic Prosperity
Khaybar’s agricultural wealth strengthened the Muslim economy, with the jizya ensuring a steady resource flow. - Strategic Dominance
Neutralizing Khaybar secured Medina’s northern frontier and weakened hostile alliances, enhancing Muslim influence. - Spread of Islam
The victory boosted the Muslims’ prestige, encouraging tribal alliances and conversions. - Ali’s Legacy
Ali’s heroics, particularly his duel with Marhab and gate-uprooting, became legendary, especially in Shia tradition, symbolizing divine favor. - Governance Model
The surrender terms established a framework for treating non-Muslims under Muslim rule, influencing Islamic legal traditions.
Modern Resonance: Ayatollah Khamenei’s X Post (June 18, 2025)
The Battle of Khaybar remains a potent symbol in Islamic culture, particularly within Shia Islam, where Ali’s triumph represents resistance and divine victory. On June 18, 2025, Iran’s Supreme Leader Ayatollah Ali Khamenei posted on X, invoking this legacy amid escalating tensions with Israel:
In the name of Haidar, the battle begins. Ali returns to Khaybar with his Zulfiqar. Allahu Akbar.
Accompanied by an image of a warrior wielding Zulfiqar striding toward a burning fortress, the post framed Iran’s confrontation with Israel and U.S. demands for surrender under President Donald Trump within Khaybar’s narrative. The reference to “Haidar” and “Zulfiqar” evokes Ali’s conquest, symbolizing defiance against perceived oppression.
Context of the Post
Posted during intense Israel-Iran conflict, marked by Israel’s Operation Rising Lion (June 17, 2025) targeting Iran’s nuclear facilities and Iran’s retaliatory Operation True Promise III, the post was a rhetorical battle cry. Trump’s demand for Iran’s “unconditional surrender” and threats against Khamenei heightened tensions. Khamenei’s invocation draws parallels between Ali’s victory over Khaybar’s Jewish tribes and Iran’s stance against Israel, often termed the “Zionist regime” in Iranian rhetoric. In Shia tradition, Khaybar symbolizes the defeat of entrenched enemies, making it a powerful metaphor for resistance.
Interpretations and Impact
The post elicited diverse reactions:
- Shia Support: For Shia Muslims, particularly in Iran, the reference rallied support, affirming Ali’s divine precedence and Iran’s legitimacy in confronting Israel. Analysts noted its potential to unite Shias and anti-Wahhabi Sunnis behind Tehran.
- Jewish Concerns: The Jewish community in Iran and Israeli officials viewed the post as threatening, given Khaybar’s association with the defeat of Jewish tribes, raising fears for Iran’s Jewish minority.
- Geopolitical Analysis: Observers interpreted the post as a coded signal of Iran’s resolve, overlaying historical memory onto modern conflict. It mirrored Israeli Prime Minister Benjamin Netanyahu’s biblical references, highlighting the use of history in contemporary rhetoric.
Khamenei’s post underscores Khaybar’s role in shaping Shia identity and Iranian state messaging, illustrating how historical narratives inform modern geopolitics.
Scholarly Debates and Controversies
The Battle of Khaybar has sparked varied interpretations. Historians like William Montgomery Watt argue it was a necessary response to the Banu Nadir’s hostility, while David Margoliouth questions its justification, suggesting economic motives. Islamic sources emphasize security and betrayal, with the Prophet’s lenient terms countering claims of exploitation.
In modern contexts, Khaybar has been politicized. Groups like Hamas have referenced it in anti-Israel rhetoric, drawing criticism for anachronism. Khamenei’s 2025 post exemplifies this trend, using Khaybar symbolically, though its rhetoric risks misinterpretation as a call to violence.
Conclusion
The Battle of Khaybar (629 CE) was a defining moment in Islamic history, driven by strategic, economic, and religious imperatives. Ali ibn Abi Talib’s heroics—slaying Marhab, uprooting Qamus’s gate, and leading the Muslim forces—were decisive, cementing his legacy as Haider and shaping Shia reverence for his leadership. The battle’s outcomes strengthened the early Muslim state, setting precedents for governance and interfaith relations.
Ayatollah Khamenei’s June 18, 2025, X post illustrates Khaybar’s enduring significance, framing Iran’s resistance within Ali’s triumph. While symbolic, it highlights the battle’s role in contemporary Shia identity and geopolitical rhetoric. Khaybar remains a testament to the early Muslim community’s resilience and Ali’s unparalleled courage, offering insights into 7th-century Arabia and its lasting impact on Islamic thought.
References
- “Battle of Khaybar.” Wikipedia. https://en.wikipedia.org/wiki/Battle_of_Khaybar
- “Battle of Khaybar Story | Facts | Summary | Hadith.” QTV Tutor. https://qtvtutor.com/battle-of-khaybar/
- “Islamic History of Khalifa Ali ibn Abi Talib | Battle of Khyber.” Alim.org. https://www.alim.org/history/khalifa-ali/battle-of-khyber/
- “Khaybar.” Wikipedia. https://en.wikipedia.org/wiki/Khaybar
- “The Conquest of Khyber.” A Restatement of the History of Islam and Muslims, Al-Islam.org. https://www.al-islam.org/restatement-history-islam-and-muslims-sayyid-ali-asghar-razwy/conquest-khyber
- “Battle of Khaybar.” WikiShia. https://en.wikishia.net/view/Battle_of_Khaybar
- “Battle of Khaybar.” IslamicFinder. https://www.islamicfinder.org/knowledge/islamic-history/battle-of-khaybar/
- “10 Facts about the Battle of Khyber.” Life in Saudi Arabia. https://lifeinsaudiarabia.net/10-facts-about-the-battle-of-khyber/
- “Battle of Khaybar: Reasons, Objectives, Events & Results.” WhoMuhammadIs.com. https://www.whomuhammadis.com/battle-of-khaybar/
- “Khyber.” Duas.org. https://www.duas.org/khyber.htm
- “Marhab.” Wikipedia. https://en.wikipedia.org/wiki/Marhab
- “Conquest of Khyber and Ja’far’s return from Habasha.” Hayat Al-Qulub Vol. 2, Al-Islam.org. https://www.al-islam.org/hayat-al-qulub-vol-2-allamah-muhammad-baqir-majlisi/conquest-khyber-and-jafar-s-return-habasha
- “The Battle of Khaybar: Unveiling the Forgotten Triumph.” Medium. https://medium.com/@islamicmentors/the-battle-of-khaybar-unveiling-the-forgotten-triumph-6f3b7a2c9e1f
- “The Battle of Khaybar: Courage, Strategy, and Faith.” Islamic Mentors. https://islamicmentors.com/the-battle-of-khaybar/
- “Battle of Khaybar.” Misbah-uz-Zulam, Roots of the Karbala’ Tragedy, Al-Islam.org. https://www.al-islam.org/misbah-uz-zulam-roots-karbala-tragedy-sayyid-imdad-imam/battle-khaybar
- “Battle of Khaybar.” Military Wiki, Fandom. https://military.wikia.org/wiki/Battle_of_Khaybar
- “Khamenei’s Khaybar tweet: A sword, a signal, a story.” India Today, June 18, 2025. https://www.indiatoday.in/world/story/khamenei-khaybar-tweet-iran-israel-conflict-ali-zulfiqar-2556723-2025-06-18
- “Beleaguered Khamenei warns of ‘irreparable damage’ to US if it strikes, vows to ‘punish’ Israel.” The Times of Israel, June 18, 2025. https://www.timesofisrael.com/beleaguered-khamenei-warns-of-irreparable-damage-to-us-if-it-strikes-vows-to-punish-israel/
- “The battle begins: Khamenei responds to Trump’s threats amid possible US attack.” India Today, June 18, 2025. https://www.indiatoday.in/world/story/iran-khamenei-responds-trump-threats-us-attack-israel-conflict-2556719-2025-06-18
- “Iran fires two overnight missile barrages at Israel; Khamenei: ‘The battle begins’.” The Times of Israel, June 18, 2025. https://www.timesofisrael.com/iran-fires-two-overnight-missile-barrages-at-israel-khamenei-the-battle-begins/
- “Khamenei Announces the Start of the ‘Khaybar Battle’.” Hasht-e Subh, June 18, 2025. https://8am.media/eng/khamenei-announces-the-start-of-the-khaybar-battle/
- “Khamenei Unleashes ‘Zulfiqar’, Declares ‘Battle has Begun’.” Kashmir Observer, June 18, 2025. https://kashmirobserver.net/2025/06/18/khamenei-unleashes-zulfiqar-declares-battle-has-begun/
- “Ayatollah Khamenei’s Khaybar verse hints at escalation.” Shafaq News, June 18, 2025. https://shafaq.com/en/World/Ayatollah-Khamenei-s-Khaybar-verse-hints-at-escalation
- “Clash of lions and legends: Netanyahu, Khamenei weaponise history in Israel-Iran war.” Firstpost, June 19, 2025. https://www.firstpost.com/explainers/clash-of-lions-and-legends-netanyahu-khamenei-weaponise-history-in-israel-iran-war-13802422.html
- “‘Ali returns to Khaybar’: Khamenei’s tweet raises concerns in the Jewish community in Iran.” Free Republic, June 19, 2025. https://freerepublic.com/focus/f-news/4269876/posts