 This period was preceded by the period of Muhammad in Medina.The Muslim army entered and occupied Mecca in the year 630 CE.In 628 the Meccan tribe of Quraish and the Muslim community in Medina signed a truce called the Treaty of Hudaybiyya.