 Subsequently, Muslims and Meccans entered into the Treaty of Hudaybiyyah, whereby the Quraysh and their allies promised to cease fighting Muslims and their allies and promised that Muslims would be allowed into the city to perform the pilgrimage the following year.It was meant to be a ceasefire for 10 years; however, just two years later, the Banu Bakr, allies of the Quraish, violated the truce by slaughtering a group of the Banu Khuza'ah, allies of the Muslims.Muhammad and his companions, now 10,000 strong, marched into Makkah and conquered the city.