The Battle of Kadesh or Battle of Qadesh took place between the forces of the New Kingdom of Egypt under Ramesses II and the Hittite Empire under Muwatalli II at the city of Kadesh on the Orontes River, just upstream of Lake Homs near the modern Lebanon–Syria border. The battle is generally dated to 1274 BC from the Egyptian chronology and is the earliest battle in recorded history for which details of tactics and formations are known. It is believed to have been the largest chariot battle ever fought, involving between 5,000 and 6,000 chariots in total. Ramesses signed the earliest recorded peace treaty with Urhi-Teshub's successor, Hattusili III, and with that act Egypt-Hittite relations improved significantly. Ramesses II even married two Hittite princesses, the first after his second Sed Festival.
Hittite prosperity was mostly dependent on control of the trade routes and metal sources. Because of the importance of Northern Syria to the vital routes linking the Cilician gates with Mesopotamia, defense of this area was crucial and was soon put to the test by Egyptian expansion under Pharaoh Ramesses II. The outcome of the battle is uncertain, though it seems that the timely arrival of Egyptian reinforcements prevented total Hittite victory. The Egyptians forced the Hittites to take refuge in the fortress of Kadesh, but their own losses prevented them from sustaining a siege. This battle took place in the 5th year of Ramesses (c. 1274 BC by the most commonly used chronology).
Shalmaneser I (1274–1245 BC) conquered eight kingdoms in central Anatolia in his first year, and in the next, he defeated a coalition of Hittites, Hurrians, Mitanni, and Ahlamu, annexing yet more territory in Anatolia and the Levant, and retaining Assyrian dominion over Babylonia and the northwest of ancient Iran. Shalmaneser also conducted extensive building work in Assur, Nineveh, and Arbela, and founded the city of Kalhu (the Biblical Calah/Nimrud).