Oghuz Turks
In the early 11th century, the city was under the Banu Uqayl and later the Annazids until the Oghuz Turks captured the city around 1045.