 Hashim gained control of Calatrava la Vieja, then a major fortress town, until 834.Hashim was killed in battle in 831, but his followers maintained the rebellion, and Berbers from Calatrava besieged Toledo in 835 and 836.The rebellion was finally ended in 837, when the emir's brother al-Walid became governor of Toledo.