of whom would come to rule the kingdom in their own right), and Alix, who died in childhood. Succession Baldwin III died on 10 February 1163 and the kingdom passed to Amalric, although there was some opposition among the nobility to Agnes; they were willing to accept the marriage in 1157 when Baldwin III was still capable of siring an heir, but now the Haute Cour refused to endorse Amalric as king unless his marriage to Agnes was annulled. The hostility to Agnes, it must be admitted, may be exaggerated by the chronicler William of Tyre, whom she prevented from becoming Latin Patriarch of Jerusalem decades later, as well as from William's continuators like Ernoul, who hints at a slight on her moral character: "car telle n'est que roine doie iestre di si haute cite comme de Jherusalem" ("there should not be such a queen for so holy a city as Jerusalem"). Nevertheless, consanguinity was enough for the opposition. Amalric agreed and ascended the throne without a wife, although Agnes continued to hold the title Countess of Jaffa and Ascalon and received a pension from that fief's income. Agnes soon thereafter married Hugh of Ibelin, to whom she had been engaged before her marriage with Amalric. The church ruled that Amalric and Agnes' children were legitimate and preserved their place in the order of succession. Through her children Agnes would exert much influence in Jerusalem for almost 20 years. Conflicts with the Muslim states During Baldwin III's reign, the County of Edessa, the first crusader state established during the First Crusade, was conquered by Zengi, the Turkic emir of Aleppo. Zengi united Aleppo, Mosul, and other cities of northern Syria, and intended to impose his control on Damascus in the south. The Second Crusade in 1148 had failed to conquer Damascus, which soon fell to Zengi's son Nur ad-Din. Jerusalem also lost influence to Byzantium in northern Syria when the Empire imposed its suzerainty over the Principality of Antioch. Jerusalem thus turned its attention to Egypt, where the Fatimid dynasty was suffering from a series of young caliphs and civil wars. The crusaders had wanted to conquer Egypt since the days of Baldwin I, who died during an expedition there. The capture of Ascalon by Baldwin III made the conquest of Egypt more feasible. Invasions of Egypt Amalric led his first expedition into Egypt in 1163, claiming that the Fatimids