The rulers of Aleppo ruled as kings, emirs and sultans of the city and its surrounding region since the later half of the 3rd millennium BC, starting with the kings of Armi, followed by the Amorite dynasty of Yamhad. Muslim rule of the city ended with the Ayyubid dynasty which was ousted by the Mongol conquest in 1260. The rulers of Yamhad used the titles of king and Great King, while the Hittite dynasty monarchs used the titles of king and viceroy. The dates for Yamhad and the Hittite Dynasties are proximate and calculated by the Middle chronology.