Mecca was conquered by Muslims during Ramadan in 630 CE.
The Conquest of Mecca took place in Ramadan of 8 AH, generally dated to December 629 or January 630 CE. Muhammad led an army of approximately 10,000 followers toward the Quraysh-controlled city after the breakdown of the Treaty of Hudaybiyyah.
The treaty’s truce was violated when the Quraysh-supported Banu Bakr attacked the Muslim-allied Banu Khuza‘ah. Muhammad advanced on Mecca, and the city surrendered with comparatively little fighting. The conquest ended the major conflict between the Muslims and Quraysh.
After entering Mecca, Muhammad granted a broad amnesty and rededicated the Kaaba to Islamic worship, removing idols associated with pre-Islamic Arabian religion. The event is distinct from the Battle of Badr, which occurred six years earlier in Ramadan 624 CE. Dates converted from the Islamic calendar vary somewhat among historical sources.