The Constitution of Medina was drafted by the Islamic prophet Muhammad. It constituted a formal agreement between Muhammad and all of the significant tribes and families of Yathrib (later known as Medina), including Muslims, Jews, Christians and Pagans. This constitution formed the basis of the first Islamic state. The document was drawn up with the explicit concern of bringing to an end the bitter intertribal fighting between the clans of the Aws (Aus) and Khazraj within Medina. To this effect it instituted 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.