From Mw
Mohammed
marched on Mecca after the Quraish broke their treaty not to attack any of the Muslims or the tribes they where allied with.
The prophet
granted amnesty to all the people of Mecca save those who had commited henious crimes against the Muslims.