and took it by the sword, while Arsuf and Haifa were admitted on terms of safety, and Caesarea was captured by storm (1).
In the year 495 AH al-Mustaʿlī, ruler of Egypt, died and al-Āmir succeeded him. Fighting broke out between the two brothers Barkyāruq and Muḥammad, bringing with it hardship and siege. The Franks invested Tripoli, whereupon the armies of Damascus and Ḥimṣ marched to relieve it but were routed. The Muslim force later encountered Baldwin, defeated him, and only a few of his renowned knights escaped. Three Batinis overpowered Janāḥ al-Dawla, lord of Ḥimṣ, and killed him inside the congregational mosque. The Franks then approached the city; they were bought off for money, and Shams al-Mulūk took possession of it. The Batinis also assassinated al-Aʿazz, Barkyāruq’s vizier. Karbughā, lord of Mosul, died at Khoy after having seized most of Azerbaijan.
Sanjar had the Friday sermon in Khurasan proclaimed for his brother Muḥammad. He fought Qadrkhān, the ruler of Transoxania, captured and executed him, and appointed Bughrājān’s son as governor of Samarqand. The Muslims laid siege to Valencia and recovered it from the Franks after the latter had held it for eight years, though it slipped from Muslim hands again in the year 636 AH (2).
In the year 496 AH Shams al-Mulūk marched, besieged al-Raḥba and took it. The Egyptian army arrived and met the Franks at Jaffa; the Franks were defeated. Barkyāruq and his brother concluded a peace, grew weary of war, and entered into an alliance. The Frankish siege of Tripoli dragged on; they seized Jubayl, then Acre, and advanced upon Harran. The Muslim army came up, battle was joined, victory was bestowed, the accursed enemy were annihilated, and it reached