This caused a crisis between Egypt and Hatti, when Ramesses said he did not know where Mursili was. The two empires came close to war. Eventually, in the twenty-first year of his reign (1258 BC), Ramesses decided to make an agreement with Hattusili III, to end the conflict. The document they agreed is the earliest known peace treaty in world history.