Then in 627, Abu Sufyan led the Quraysh and its allies to attack Medina itself. However, they could not pass the trench that the Muslims had dug around Medina. After several weeks, the coalition broke up and went home. The Medinians were considered victors.