Fear of further conflict between the two states persuaded both rulers, Hattusili III and Ramesses II, to end their dispute and sign a peace treaty. Both sides were threatened by other enemies. Egypt had to defend her western border against Libyan tribesmen, while the Hittites faced the threat of the Assyrian Empire, which had conquered Mesopotamia.