The aborted first pilgrimage, which was prevented by the Quraysh, who promised to allow it the following year in the Hudaybiyah treaty, did not also entail the prevention of continuing practices by polytheists. However, before the second pilgrimage season, allies of the Quraysh violated the treaty, allowing the Muslims to return as conquerors rather than guests. Henceforth, the Kaʿaba was to be dedicated to the worship of the one God alone, and the idols were destroyed.