The battles !
The Battle of the Trench (Arabic: غزوة الخندق; Transliteration: Ghazwah al-Khandaq) also known as Battle of Ahzab, Battle of the Confederates and Siege of Medina (Arabic: غزوة الاحزاب; Transliteration: Ghazwah al-Ahzab), was a fortnight-long siege of Yathrib (nowMedina) 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 Median numbered 3,000. The battle began on March 31, 627.
The largely outnumbered defenders of Medina, mainly Muslims led by Islamic prophet Muhammad, opted to dig and fight the confederates from a trench. The trench 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 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-organized defenders, the sinking of confederate morale, and poor weather conditions caused the siege to end in a fiasco.
The siege was a "battle of wits", in which the Muslims tactically overcame their opponents while suffering very few casualties. Efforts to defeat the Muslims failed, and Islam became influential in the region. As a consequence, the Muslim army besieged the neighbourhood of the Banu Qurayza tribe, leading to their unconditional surrender.
The defeat caused the Meccans to lose their trade and much of their prestige
The Battle of Hunain was fought between Muhammad and his followers against the Bedouin tribe of Hawazin and its subsection the Thaqif in 630 in a valley on one of the roads leading from Mecca to al-Ta'if. The battle ended in a decisive victory for the Muslims, who captured enormous spoils. The Battle of Hunayn is one of only two battles mentioned in the Qur'an by name, in Sura [Qur'an 9:25].