<Tr> <Td_colspan="2"> Ghazwah (expeditions where he took part) <Ul> <Li> Abwa </Li> <Li> Buwat </Li> <Li> Safwan </Li> <Li> Dul </Li> <Li> 1st Badr </Li> <Li> Kudr </Li> <Li> Sawiq </Li> <Li> Qaynuqa </Li> <Li> Thi </Li> <Li> Bahran </Li> <Li> Uhud </Li> <Li> Asad </Li> <Li> Nadir </Li> <Li> 2nd Nejd </Li> <Li> 2nd Badr </Li> <Li> Jandal </Li> <Li> Trench </Li> <Li> Qurayza </Li> <Li> Lahyan </Li> <Li> Mustaliq </Li> <Li> Treaty </Li> <Li> Khaybar </Li> <Li> Fadak </Li> <Li> Qura </Li> <Li> Dhat </Li> <Li> Baqra </Li> <Li> Mecca </Li> <Li> Hunayn </Li> <Li> Autas </Li> <Li> Ta'if </Li> <Li> Tabouk </Li> </Ul> </Td> </Tr> <Ul> <Li> Abwa </Li> <Li> Buwat </Li> <Li> Safwan </Li> <Li> Dul </Li> <Li> 1st Badr </Li> <Li> Kudr </Li> <Li> Sawiq </Li> <Li> Qaynuqa </Li> <Li> Thi </Li> <Li> Bahran </Li> <Li> Uhud </Li> <Li> Asad </Li> <Li> Nadir </Li> <Li> 2nd Nejd </Li> <Li> 2nd Badr </Li> <Li> Jandal </Li> <Li> Trench </Li> <Li> Qurayza </Li> <Li> Lahyan </Li> <Li> Mustaliq </Li> <Li> Treaty </Li> <Li> Khaybar </Li> <Li> Fadak </Li> <Li> Qura </Li> <Li> Dhat </Li> <Li> Baqra </Li> <Li> Mecca </Li> <Li> Hunayn </Li> <Li> Autas </Li> <Li> Ta'if </Li> <Li> Tabouk </Li> </Ul> <P> The Battle of the Trench (Arabic: غزوة الخندق ‎, translit . Ghazwah al - Khandaq ‎) also known as the Battle of the Confederates (Arabic: غزوة الاحزاب ‎, translit . Ghazwah al - Ahzab ‎), was a 27 - day - long siege of Yathrib (now Medina) by Arab and Jewish tribes . The strength of the confederate armies is estimated around 10,000 men with six hundred horses and some camels, while the Medinan defenders numbered 3,000 . The battle coincided with harsh winter weather of January / February AD 627 . </P> <P> The largely outnumbered defenders of Medina, mainly Muslims led by Islamic prophet Muhammad, dug a trench on the suggestion of Salman Farsi, which together with Medina's natural fortifications, rendered the confederate cavalry (consisting of horses and camels) useless, locking the two sides in a stalemate . Hoping to make several attacks at once, the confederates persuaded the Muslim - allied Medinan Jews, Banu Qurayza, to attack the city from the south . However, Muhammad's diplomacy derailed the negotiations, and broke up the confederacy against him . The well - organised defenders, the sinking of confederate morale, and poor weather conditions caused the siege to end in a fiasco . </P>

When did the battle of khandaq take place