The battle of ditch took place in 625C.E . Battle of the Ditch, (ad 627), Arabic Al-Khandaq (The Ditch), an early Muslim victory that ultimately forced the Meccans to recognize the political and religious strength of the Muslim community in Medina.