صلح الحديبية
The Arab tribes in the rest of Arabia then formed a confederation and during the Battle of the Trench (March–April 627) besieged Medina, intent on finishing off Islam. In 628, the Treaty of Hudaybiyyah was signed between Mecca and the Muslims and was broken by Mecca two years later. After the signing of the Treaty of Hudaybiyyah, many more people converted to Islam. At the same time, Meccan trade routes were cut off as Muhammad brought surrounding desert tribes under his control. By 629 Muhammad was victorious in the nearly bloodless conquest of Mecca, and by the time of his death in 632 (at age 62) he had united the tribes of Arabia into a single religious polity.