 Theodulf became the Bishop of Orléans under Charlemagne.When Charlemagne died and Louis the Pious became the emperor of the Holy Roman Empire, Theodulf was removed from the bishopric and placed under house arrest at a monastery in Angers during the power struggle following Louis' ascension, mostly due to his opposition to icons and Louis' suspicion that Theodulf supported an Italian rival to the throne.During his arrest, Theodulf wrote "Gloria, laus et honor" for Palm Sunday.