Yarim-Lim ascended the throne at a time of internal disintegration for Yamhad, combined with foreign threats represented with the rise of the Hittites. He was either the son of Niqmi-Epuh or Irkabtum.
Yarim-Lim fought and won against Qatna in his early years, but Yamhad's weakness was clear. Ammitakum of Alalakhdeclared himself king but not as independent ruler, he acknowledged Yarim-Lim as his suzerain and appointed his son Hammurabi as his heir in the presence of Yarim-Lim, declaring him a servant to the great king of Yamhad. Yarim-Lim was a passive actor in naming the heir to Alalakh
War with the Hittites
The Hittite kingHattusili I exploited Alalakh's proclamation of sovereignty and the internal dissent it caused in Yamhad. He attacked Alalakh in the second year of his Syrian campaigns and conquered it, cutting Aleppo's route to the sea. Yarim-Lim did not send troops to aid Alalakh and the city was destroyed. He then attacked Urshu. Yarim-Lim and Carchemish sent aid to the city in vain, and Hattusili destroyed it. The Hurrians supported by Yarim-Lim attacked Hattusili's newly acquired lands while he was campaigning against Arzawa. He came back on his second campaign, this time fighting Aleppo directly. In the sixth year of his Syrian campaigns, Hattusili headed toward Hassuwa. Yarim-Lim sent the Aleppan army under the leadership of General Zukrassi, the heavy-armed troops leader accompanied by General Zaludis, the commander of the Manda troops. The army consisted of about a hundred chariots and thousands of foot soldiers. The battle took place near Atalur mountain. Hattusili emerged victorious. Then he destroyed Hassuwa and moved on destroying Yamhad's other Hurrian allies such as Zippasna and Hahhum. Hattusuli then crossed the Euphrates, comparing himself with Sargon of Akkad and returned to Hattusa.
Death and Succession
The date of Yarim-Lim's death is not known, but he died and was succeeded by Hammurabi III his possible son or cousin, before Hattusili's direct attack on the city of Aleppo which ended in his defeat.