An early example is the treaty that ended the Byzantine–Sasanian War of 602–628 between the Eastern Roman and the Sasanian Persian Empires. The Persians had occupied Asia Minor, Palestine and Egypt. After a successful Roman counteroffensive in Mesopotamia finally brought about the end of the war, the integrity of Rome's eastern frontier as it was prior to 602 was fully restored.