In a subsequent encounter with the large relief army the Crusaders killed many but eventually had to retreat exhausted and tired. The duration of the siege not only frustrated them, but their logistical systems started to weaken. When a final assault on the city was repelled they were ready to settle for a treaty. On the opposing side the Berbers realized that they could not overcome the heavier armed invaders. Both sides looked for a way to end the hostilities.
