Conquest of Mecca
During the Conquest of Mecca in 630, Muhammad asked Ali to guarantee that the conquest would be bloodless. He ordered Ali to purify Kaaba from idols after its defilement by the polytheism of old times.