Hattusili led the Hittite forces in the Battle of Kadesh against Egypt in 1274 BC. Hattusili and the Egyptian pharaoh Ramesses II later made a peace treaty. This is the earliest treaty which has survived to the present day. Apparently, it was based upon previous Hittite models. The treaty set up a long-lasting peace between the two rival empires. Ramesses married Hattusili's daughter, and years later he married another Hittite princess.