In the early 7th century, Muhammad, who was born in Makkah, preached Islam to the inhabitants of Mecca and the Hijaz, and encountered resistance from many of the people there and even at Ta'if. In 630, the Battle of Hunayn took place at Hunayn, close to the city. Shortly after that, the unsuccessful Siege of Ta'if took place. The city was assaulted by catapults from Banu Daus, but it repelled the attacks. The Battle of Tabuk in 631 left Tā'if completely isolated, so members of Thaqīf arrived in Makkah to negotiate the conversion of the city to Islam. The idol of "Lāt" was destroyed along with all other signs of the city's pagan past.