Banu Qurayza after his victory over the Meccans in the Battle of Badr, Banu Qaynuqa threatened Muhammad's political position and assaulted a Muslim woman which led to their expulsion from Medina for breaking the peace treaty of Constitution of Medina. The Qurayza remained passive during the whole Qaynuqa affair, apparently because the Qaynuqa were historically allied with the Khazraj, while the Qurayza were the allies of the Aws. Soon afterwards, Muhammad came into conflict with the Banu Nadir. He had one of the Banu Nadir's chiefs, the poet Ka'b ibn al-Ashraf, assassinated and after the Battle of Uhud accused the tribe of
Battle of the Trench many alliances against the Muslim expansion. Nevertheless, he was unable to prevent the Meccan one. As they had in the battles of Badr and Uhud, the Muslim army again used strategic methods against their opponents (at Badr, the Muslims surrounded the wells, but did not deprive their opponents of water since Ali did not want to follow the footsteps of the Meccan army; at the Battle of Uhud, Muslims made strategic use of the hills). In this battle they dug a trench to render the enemy cavalry ineffective. The reason for this battle was to defend Medina from attack, after