 His brother the 22nd Doge Pietro IV and his young heir Pietro V had been killed in the revolution.He was elected by the popular assembly in September 978.This after having to flee to Saxony because of the revolt against his father.