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 Badr Kargil War. Iranian offensive operations against Iraq in the late 1980s were also named after Badr. During the 2011 Libyan civil war, the rebel leadership stated that they selected the date of the assault on Tripoli to be the 20th of Ramadan, marking the anniversary of the Battle of Badr. The Battle of Badr was featured in the 1976 film "The Message", the 2004 animated movie "", and the 2012 TV series "Omar". Battle of Badr The Battle of Badr (), fought on Tuesday, 13 March 624 CE (17 Ramadan, 2 AH in the Islamic calendar) in the Hejaz region