In 627, the city was the site of the Battle of Nineveh between the Eastern Roman Empire and the Sasanians. In 641, it was conquered by the Arabs, who built a mosque on the west bank and turned it into an administrative centre. Under the Umayyad dynasty, it eclipsed Nineveh, which was reduced to a Christian suburb with limited new construction. By the 13th century, Nineveh was mostly ruins. A church was converted into a Muslim shrine to the prophet Jonah, which continued to attract pilgrims until its destruction by ISIL in 2014.