Ridda Wars Conquest of Sasanian Persia Conquest of Byzantine Syria Campaigns in Africa Campaigns in Armenia and Anatolia The siege of Ta'if took place in 630, as the Muslims under the leadership of Muhammad besieged the city of Ta'if after their victory in the battles of Hunayn and Autas.
Malik disrupted the ability of the citizens of Ta'if to graze their cattle outside of the city, further increasing the difficulty of life inside the walls.
[6] Although the siege was unsuccessful, Muhammad vowed to return to Ta'if after the sacred months in which fighting was forbidden were over.
When this conspiracy was discovered, and their ambush failed, Muhammad refused the proposal and would only accept their surrender if they agreed to disarm.
Eventually the Banu Thaqif consented to Muhammad's request, so they then surrendered and allowed the Muslims into their city.