The town was sacked again in 1262 by the Mongols under Kerboka. The Ilkhanids retained Anbar as an administrative centre, a role it retained until the first half of the 14th century; the Ilkhanid minister Shams al-Din Juvayni had a canal dug from the city to Najaf, and the city was surrounded by a wall of sun-dried bricks.