 Since his father had rebelled against two previous emperors, the younger Henry spent long periods of time in exile, where he turned to Christianity at an early age, first finding refuge with the Bishop of Freising and later during his education at the cathedral school in Hildesheim.He succeeded his father as Duke of Bavaria in 995 as "Henry IV".As duke, he attempted to join his second-cousin, Emperor Otto III, in suppressing a revolt against imperial rule in Italy in 1002.