 Although Antioch was severely weakened after the Battle of Ager Sanguinis in 1119, and Baldwin himself was held captive by the emir of Aleppo from 1122–1124, Baldwin led the crusader states to victory at the Battle of Azaz in 1125.His reign saw the establishment of the first military orders, the Knights Hospitaller and the Knights Templar; the earliest surviving written laws of the kingdom, compiled at the Council of Nablus in 1120; and the first commercial treaty with the Republic of Venice, the Pactum Warmundi, in 1124.The increase of naval and military support from Venice led to the capture of Tyre that year.