 When he learned that a Muslim army of 10,000 soldiers was marching towards Mecca, he converted to Islam and negotiated Mecca's transfer of power to avoid a conquest.Muhammad acted generously to the Meccans, demanding only that the pagan idols around the Kaaba be destroyed, now there are no idols there.The Battle of Hunain was fought between Muhammad and his followers against the Bedouin tribe of Hawazin and its subsection the Thaqif in 630 in a valley on one of the roads leading from Mecca to al-Ta'if.