In 817, by a solemn deed, confirmed by Paschal I, Louis had made a division of the empire in favour of his three sons from his first marriage: the future emperor Lothair I, Pepin I of Aquitaine, and Louis the German. Over time, papal dependence on the Carolingian emperor was loosened through the quarrels of Louis the Pious and his sons. Louis’ decision to jettison the agreement of 817 regarding the division of the empire by assigning a kingdom to his youngest son, Charles the Bald, in 829 was criticized by Gregory in a letter to the Frankish bishops. The following year (October 830), after a brief rebellion and reconciliation between Louis and his sons, Gregory declared that Louis’ second wife, Judith, was to be released from the convent where she had been forced to take the veil, and to be returned to Louis.