Islam migrants ("Muhajirun"), Muhammad in Medina established his political and religious authority. The Constitution of Medina was formulated, instituting a number of rights and responsibilities for the Muslim, Jewish, Christian and pagan communities of Medina, bringing them within the fold of one community—the Ummah. The Constitution established: All the tribes signed the agreement to defend Medina from all external threats and to live in harmony amongst themselves. Within a few years, two battles took place against the Meccan forces: first, the Battle of Badr in 624 – a Muslim victory, and then a year later, when the Meccans returned to Medina,
Battle of Hab was able to recapture some of the places lost." Strategically, it was a Christian victory which preserved the Principality of Antioch for several generations. The next major engagement in the area was the Battle of Azaz in 1125. Battle of Hab In the Battle of Hab () on August 14, 1119, a Crusader army commanded by King Baldwin II of Jerusalem won a disputed victory over a Muslim army led by Ilghazi of Mardin since the Muslim army claimed it as a victory. The battle stabilized the Principality of Antioch, which had suffered a disastrous defeat only weeks before. Baldwin