The conquest of Mecca
By 628, the Muslim position was strong enough that Muhammad decided to return to Mecca, this time as a pilgrim. In March of that year, he set out for Mecca, followed by 1,600 men. After some negotiation, a treaty was signed at the border town of al-Hudaybiyah. While Muhammad would not be allowed to finish his pilgrimage that year, hostilities would cease and the Muslims would have permission to make a pilgrimage to Mecca in the following year.
The agreement lasted only two years, however, as the Meccans broke the treaty in 630. As a result, the prophet Muhammad marched on Mecca with an enormous force, said to number 10,000+ men. The Meccans submitted without a fight, and thus, there was no bloodshed. The prophet Muhammad promised a general amnesty to all the Meccans and ensured them that no harm will be done to them. Most Meccans converted to Islam, as a result of this, and Muhammad destroyed the idols in the Kaaba. Henceforth the pilgrimage would be a Muslim pilgrimage and the shrine a Muslim shrine