 He visited Egypt later that year with Ahmad ibn Hajji, and the two were well received by Baybars.Baybars died in July 1277 and was succeeded by his sons who ruled in name only while Baybars' closest subordinate, Qalawun, acted as strongman.Qalawun usurped the throne in 1279 and soon after faced a rebellion by his viceroy in Syria, Sunqur al-Ashqar, who was joined by Isa.