The archive of Mari reports a plan between Zimri-Lim, the king of Carchemish and the king of Eshnunna (who made peace with Mari), to attack Qatna. Such an alliance could not have been realized without the participation of Yamhad, overlord of both Mari and Carchemish; in the end, the plan was not pursued and the tense relations between Qatna and Yamhad eased toward the last years of Yarim-Lim's reign. In a letter written to Zimri-Lim, Yarim-Lim I agreed to establish peace with Qatna if Amut-piʾel II were to come by himself to Aleppo, thus acknowledging the supremacy of Yamhad; no proof can be shown for a meeting taking place between the two kings. Just before his death in 1765 BC, Yarim-Lim called a meeting of his vassals, and Zimri-Lim traveled to Aleppo where he met messengers from Qatna and Hazor, indicating that Amut-piʾel II started recognizing the supremacy of Yarim-Lim, and that Hazor, Qatna's vassal, was now obeying Yamhad. Yarim-Lim's successor Hammurabi I arranged a peace with Qatna that probably did not require the Qaṭanean king to visit Aleppo personally, but indicated Qatna's acceptance of Yamhad's superiority. This apparent yielding seems a mere formality as Qatna continued its aspirations for power, as became clear in its behavior during the Elamite invasion of Mesopotamia in year ten of Zimri-Lim's reign. An Elamite messenger reached Emar and sent three of his servants to Qatna; Hammurabi I of Yamhad learned of this and sent troops to intercept them on their return. The servants were captured and questioned, revealing that Amut-piʾel II told them to tell their monarch that "The country is delivered to you, come up to me! if you come up, you will not be taken by surprise." The Qaṭanean king also sent two messengers to Elam, but they were probably captured in Babylon.