He marched against Mecca with an army of ten thousand men, and the city surrendered with little resistance.