The Siege of Constantinople in 626 by the Sassanid Persians and Avars, aided by large numbers of allied Slavs, ended in a strategic victory for the Byzantines. The failure of the siege saved the Empire from collapse, and, combined with other victories achieved by Emperor Heraclius (r. 610–641) the previous year and in 627, enabled Byzantium to regain its territories and end the destructive Roman–Persian Wars by enforcing a treaty with borders status quo c.