Ramesses II (known as Ramesses The Great) ruled Egypt for 67 years in the 12th century BCE and, today, the Egyptian landscape still bears testimony to the prosperity of his reign in the many temples and monuments he had built in honor of his conquests and accomplishments. Among his greatest moments as Pharaoh, however, is not an act of war but one of peace: the signing of the first peace treaty in history. While there does exist an earlier treaty, known as the Treaty of Mesilim, between the Mesopotamian cities of Umma and Lagash, dated to 2550 BCE, scholarly consensus rejects this as an actual peace treaty and defines it as a Treaty of Delimitation (meaning a treaty which sets borders or boundaries). Further, as the Treaty of Mesilim is actually a written agreement between the gods of Umma and Lagash, and not between the rulers of the city or those rulers' representatives, it cannot be considered an actual peace treaty. The Treaty of Kadesh, then, holds the distinction as the world's first peace treaty.
In the fifth year of his reign, young Pharaoah Ramesses marched from Egypt toward Syria to secure the border city of Kadesh, a valuable stop on the trade routes of the day. The Hittite king Muwatalli II had been making regular incursions into Egyptian territory for some time and, having now fortified Kadesh, had become more of a threat than a nuisance to Ramesses. The Hittites of Anatolia had been growing in power since the 2nd millenium BCE until, around 1530 BCE, they had replaced Babylonia as a kingdom of note and began testing the strength of their neighbor country Egypt. Letters of intent had been sent to Pharaoh Akhenaten of the 18th dynasty but he had failed to ever reply or take any notice of Hittite activity along his borders. Akhenaten's general Horemheb had campaigned unsuccessfully against the Hittites and, by the time of the rule of Tutankhamun (Akhenaten's successor in 1336 BCE) they had grown even more powerful and were bold enough to fortify regions on or near Egypt's borders. When Horemheb became pharaoh in 1320 BCE he initiated a more aggressive policy against the Hittites and secured Egypt's borders but never conclusively resolved the problem of Hittite incursions. Seti I (c. 1290-1279 BCE) had secured Palestine and Kadesh for Egypt but, content with the victory, had made no provision for holding the city. Now Ramesses II, of the 19th dynasty, had to deal with the problem of Hittite invasion and, in c. 1274 BCE, assembled his forces to drive the Hittites from Kadesh and break the strength of their army.
Riding in his chariot at the head of four divisions (20,000 men) Ramesses, completely confident of victory, marched his first division in such haste that he soon outdistanced the other three. Nearing Kadesh, two bedouins were taken prisoner and interrogated as to the whereabouts of Muwatalli and his army, answering that the army was no where near Kadesh and that Muwatalli feared the might of Egypt and the young Pharaoh. The bedouins were actually spies, however, planted by the Hittites, and Muwatalli had already fortified Kadesh and his chariots (3,500 of them) and infantry (37,000 men) were waiting just over the next hill.
According to some reports of the battle, Ramesses captured some other spies who revealed the unpleasant truth of his situation but the intelligence came too late. In his zeal to capture Kadesh and conquer the Hittite king, Ramesses had cut himself off from the rest of his army. He hastily sent messengers to the other three divisions just before the Hittite chariots crashed into his camp. Ramesses describes his situation in the Poem (which, along with the Bulletin, gives the Egyptian account of the battle) thusly:
Not one of my princes, of my chief men and my great, Was with me, not a captain, not a knight; For my warriors and chariots had left me to my fate, Not one was there to take his part in fight…Here I stand, All alone; There is no one at my side, My warriors and chariots afeared, Have deserted me, none heard My voice, when to the cravens I, their king, for succor, cried. But I find that Ammon's grace Is better far to me than a million fighting men and ten thousand chariots be.
The Ptah Division arrived in time to prevent a complete rout of the Egyptian army and Ramesses personally led the remains of the Amun division repeatedly into battle, driving the Hittite forces back to the Orontes river where many drowned. At this point Muwatalli only needed to march from the walls of Kadesh to trap Ramesses’ forces between his army by the river and his advance but, for reasons unknown, he decided to remain in the city and never committed his reserve troops to battle.
Ramesses claimed a great victory at Kadesh and had a scribe take down his account of the glorious battle; Muwatalli’s account differed considerably, most notably in that he set down Kadesh as a Hittite victory. While Ramesses failed to achieve his objective of capturing the city, he did break the Hittite army on the field and, while Muwatalli retained control of Kadesh, he failed to crush the Egyptians as he hoped to (one reason being, aside from his strange unwillingness to commit his troops, the faster and more agile two-man Egyptian chariot as compared with the three-man, heavier, Hittite vehicle). After the death of Muwatalli II, Hattusili III took the throne of the Hittite Empire and it was under his reign that the world’s first peace treaty was signed in 1258 BCE reading, in part, "Reamasesa, the great king, the king of the country of Egypt, shall never attack the country of Hatti to take possession of a part (of this country). And Hattusili, the great king, the king of the country of Hatti, shall never attack the country of Egypt to take possession of a part (of that country). "
The Battle of Kadesh, today considered a draw for both sides, was the beginning of the end of hostilities between the two nations in that, eventually, the two kings came to realize neither could substantially gain advantage of the other and the best course to choose was the path of peace.