With the death of the Persian shahanshah Kavadh I (r. 488–531) in late 531, however, and the accession of his third son Khosrau I (r. 531–579), the situation changed: Khosrau's domestic position was insecure, while on the Byzantine side, Emperor Justinian I (r.