In 657, during the Muslim conquest of Iraq, Ali's lieutenants Ziyad and Shureih were refused passage across the Euphrates at Anah. Later, in 1058, Anah was the place of exile of the caliph Qaim when al-Basasiri was in power. In the 14th century, Anah was the seat of the catholicos who served as primate over the Persian Christians. Throughout early Islamic rule, it was a prosperous trade town, well known for its date palms and gardens; in the 14th century, Mustafi wrote of the fame of its palm groves. Medieval Arab poets celebrated Anah's wine;