The Battle of the Trench was a 27-day-long defense by Muslims of Yathrib from Arab and Jewish tribes. The strength of the confederate armies is estimated at around 10,000 men with six hundred horses and some camels. The largely outnumbered defenders of Medina, mainly Muslims led by the Islamic prophet Muhammad, dug a trench on the suggestion of Salman the Persian.