The Battle of Kadesh was the great engagement of about 1274 BC between Pharaoh Ramesses II of the New Kingdom of Egypt and Muwatalli II, king of the Hittite Empire, at Kadesh on the Orontes (near present Homs, Syria) — one of the earliest large battles richly recorded in ancient history. The two powers had contested the lordship of Syria for a generation; in the fifth year of his reign Ramesses II marched north in person with four corps, some 20,000 men, while the Hittites baited the trap with Kadesh itself, massing an army built around 3,500 chariots. The Egyptian vanguard, the corps of Amun, pushed on alone to the walls and was caught by the Hittite chariot charge, its formation torn; Ramesses II fought it out personally with his household guard until the following Egyptian corps came up and threw the Hittites back into the city. No decision followed — Egypt's northward drive was checked, and for decades the two contested Syria back and forth, until in about 1259 BC they sealed the treaty — the 'silver-plate treaty', among the earliest surviving written international agreements; Ramesses II had the battle carved on temple walls, blazoning his own valor.