Hattusili and the Egyptian pharaoh Ramesses II later made a peace treaty . Hattusili and the Egyptian pharaoh Ramesses II sealed a written peace treaty based upon Hittite models which , due to Egyptian monumental copies of it , has become the earliest well known treaty in history , establishing a long-lasting peace between the two rival empires .