In 602, the last Byzantine-Sasanian war began; it was the most devastating of the series of wars fought between the two empires. In 618, Khosrau II sent Shahrbaraz to conquer Egypt; one year later the Sasanians managed to capture Alexandria, the capital of Byzantine Egypt. After the fall of Alexandria, the Sasanians gradually extended their rule southwards along the Nile.