The siege of Medina began in January 627 and lasted for 20 nights. Adding in the six days of trench-building, the entire operation lasted 27 days and was contained within a single month (5 Shawwal-1 Dhu al-Qi'dah). Since sieges were uncommon in Arabian warfare, the arriving Confederates were unprepared to deal with the trenches dug by the Muslims. The Confederates tried to attack with horsemen in hopes of forcing a passage, but the Medinans were rigidly entrenched, preventing such a crossing. Both of the armies gathered on either side of the trench and spent two or three weeks exchanging insults in prose and verse, backed up with arrows fired from a comfortable distance. According to Rodinson, there were three dead among the attackers and five among the defenders. On the other hand, the harvest had been gathered and the besiegers had some trouble finding food for their horses, which proved of no use to them in the attack. The Confederate army made several other attempts to cross the trench during the night but repeatedly failed. Although the confederates could have deployed their infantry over the whole length of the trench, they were unwilling to engage the Muslims at the close-quarter as the former regarded the latter as superior in hand-to-hand fighting. As the Muslim army was well dug-in behind the embankment made from the earth which had been taken from the ditch and prepared to bombard attackers with stones and arrows, any attack could cause great casualties.
Banu Qurayzah The Confederates attempted several simultaneous attacks, in particular by trying to persuade the Banu Qurayza to attack the Muslims from the south. From the Confederates,
Huyayy ibn Akhtab, a
Khaybarian, the leader of the exiled tribe Banu Nadir, returned to Medina seeking their support against the Muslims. So far the Banu Qurayza had tried their best to remain neutral, and were very hesitant about joining the Confederates since they had earlier made a
pact with Muhammad. When Huyayy approached them, their leader refused to allow him entry. Huyayy eventually managed to enter and persuade them that the Muslims would surely be overwhelmed. The sight of the vast Confederate armies, surging over the land with soldiers and horses as far as the eye could see, swung the Qurayza opinion in the favor of the Confederacy. News of the Qurayzah's renunciation of the pact with Muhammad leaked out, and
Umar promptly informed Muhammad. Such suspicions were reinforced by the movement of enemy troops towards the strongholds of the Qurayza. Muhammad became anxious about their conduct, and realised the grave potential danger the Qurayza posed. Because of his pact with the Qurayza, he had not bothered to make defensive preparations along the Muslims' border with the tribe. The Qurayza also possessed weaponry: 1,500
swords, 2,000 lances, 300 suits of armour, and 500 shields. Muhammad sent three
leading Muslims to bring him details of the recent developments. He advised the men to openly declare their findings, should they find the Banu Qurayza to be kind, so as to increase the morale of the Muslim fighters. However, he warned against spreading the news of a possible breach of the pact on the Qurayza's part, so as to avoid any panic within Muslim ranks. The leaders found that the pact had indeed been renounced and tried in vain to convince the Qurayza to revert by reminding them of the fate of the
Banu Nadir and
Banu Qaynuqa at the hands of Muhammad. The findings of the leaders were signaled to Muhammad in a metaphor: "
Adal and Qarah". Because the people of Adal and Qarah had betrayed the Muslims and killed them at the opportune moment,
Maududi believes the metaphor means the Qurayza were thought to be about to do the same.
Crisis in Medina Muhammad attempted to hide his knowledge of the activities of Banu Qurayza; however, rumors soon spread of a massive assault on the city of Medina from Qurayza's side which severely demoralized the Medinans. The Muslims found themselves in greater difficulties by day. Food was running short, and nights were colder. The lack of sleep made matters worse. So tense was the situation that, for the first time, the canonical daily prayers were neglected by the Muslim community. Only at night, when the attacks stopped due to darkness, could they resume their regular worship. According to
Ibn Ishaq, the situation became serious and fear was everywhere.
Muslim response Immediately after hearing the rumors about the Qurayza, Muhammad had sent 100 men to the inner city for its protection. Later he sent 300 horsemen (cavalry was not needed at the trench) as well to protect the city. The loud voices, in which the troops prayed every night, created the illusion of a large force. The crisis showed Muhammad that many of his men had reached the limits of their endurance. He sent word to Ghatafan, trying to pay for their defection and offering them a third of Medina's date harvest if they withdrew. Although the Ghatafan demanded half, they eventually agreed to negotiate with Muhammad on those terms. Before Muhammad began the order of drafting the agreement, he consulted the Medinan leaders. They sharply rejected the terms of the agreement, protesting Medina had never sunk to such levels of ignominy. The negotiations were broken off. While the Ghatafan did not retreat they had compromised themselves by entering into negotiations with Medina, and the Confederacy's internal dissension had thereby been increased. At about that point, Muhammad received a visit from
Nuaym ibn Masud, an Arab leader who was well-respected by the entire confederacy, but who had, unknown to them, secretly converted to Islam. Muhammad asked him to end the siege by creating discord amongst Confederates. Nuaym then came up with an efficient stratagem. He first went to the Banu Qurayza and warned them about the intentions of the rest of the Confederacy. He said that if the siege failed, the Confederacy would not be afraid to abandon the Jews, leaving them at the mercy of Muhammad. The Qurayza should therefore demand Confederate leaders as hostages in return for cooperation. This advice touched upon the fears the Qurayza had already harbored. Next Nuaym went to Abu Sufyan, the Confederate leader, warning him that the Qurayza had defected to Muhammad. He stated that the tribe intended to ask the Confederacy for hostages, ostensibly in return for cooperation, but really to hand over to Muhammad. Thus the Confederacy should not give a single man a hostage. Nuaym repeated the same message to other tribes in the Confederacy.
Collapse of the Confederacy Nuaym's stratagem worked. After consulting, the Confederate leaders sent
Ikrimah ibn Abi Jahl to the Qurayza, signaling a united invasion of Medina. The Qurayza, however, demanded hostages as a guarantee that the Confederacy would not desert them. The Confederacy, considering that the Qurayza might give the hostage to Muhammad, refused. Messages were repeatedly sent back and forth between the parties, but each held to its position stubbornly. Abu Sufyan summoned
Huyayy ibn Akhtab, informing him of Qurayza's response. Huyayy was taken aback, and Abu Sufyan branded him as a "traitor". Fearing for his life, Huyayy fled to the Qurayza's strongholds. The Bedouins, the Ghatafan, and other Confederates from Najd had already been compromised by Muhammad's negotiations. They had taken part in the expedition in hopes of plunder, rather than for personal reasons. They lost hope as chances of success dwindled, uninterested in continuing the siege. The two confederate armies were marked by recriminations and mutual distrust. The provisions of the Confederate armies were running out. Horses and camels were dying of hunger and wounds. For days the weather had been exceptionally cold and wet. Violent winds blew out the campfires, taking away from the Confederate army their source of heat. The Muslim camp, however, was sheltered from such winds. The enemy's tents were torn up, their fires were extinguished, the sand and rain beat in their faces and they were terrified by the portents against them. They had already well nigh fallen out among themselves. During the night the Confederate armies withdrew, and by morning the ground was cleared of all enemy forces. ==Aftermath==