As an adult, Ali eventually ran afoul of the Umayyad government during the reign of al-Walid ibn Abd al-Malik (r. 705–715), who ordered him to be flogged and banished from the capital. He subsequently relocated to the province of al-Sharat, on the border between Palestine and Arabia, and took up residence at the village of Humayma, establishing that place as the new headquarters of the Abbasid family. He died at Humayma in 735-6 or the following year, by which time his son Muhammad had already assumed leadership of the family and the Abbasid propaganda effort.