children of Louis supported the opposition against him, Bernard abandoned the court and, according to the Annales Bertiniani, returned to Barcelona. His brother, Eribert, who had remained at court, was banished. Bernard was deprived of the county of Autun which he had sometime before been granted. At an assembly in Nijmegen in October 830, the Emperor recovered his authority after a brief civil war with his sons. Subsequently, in another assembly, at Aachen in February 831, he proceeded to divide the Empire, giving Gothia to Charles, although the division would not be effective until his death. Bernard attempted to regain favour with Judith and Charles, but they avoided renewing relations with him after his fall from grace. At the Assembly of Thionville, in October 831, Bernard spoke personally with the Emperor, but could not regain his previous position at court. In response Bernard reversed his previous loyalties and side with the Emperor's enemies. Civil war of 831–832 In November 831 Pepin of Aquitaine revolted against his father. While Berengar the Wise, Count of Toulouse, advised him against such a course of action, Bernard encouraged it. In early 832 Louis the Pious began the campaign against his rebellious son. Berengar, loyal to the Emperor, invaded Bernard's honores and took Roussillon (with Vallespir) and probably also Razes and Conflent. By 2 February, Berengar was already in Elna. Ultimately, the successive victories of the imperial forces compelled Pepin and Bernard to appear before the Emperor in October 832. Pepin was dispossessed of his kingdom and sent as prisoner to Trier, having ceded all his territories to his half-brother Charles. Bernard was accused of infidelity and dismissed from all his offices and dispossessed of all his honores in Septimania and Gothia, which were given to Berengar. His brother Gaucelm was probably also dispossessed, but for a time he remained in possession of the County of Empúries, ignoring his dismissal. Civil war of 833–834 In 833 however, Lothair revolted. Pepin, with Bernard and Gaucelm, remained loyal to Louis this time. After defeating Lothair's forces, and returning the emperor to power on 1 March 834, Bernard requested the return of his honores, citing the loss of men he had sustained for the emperor's cause. However, Berengar was still in legal possession. The Emperor hesitated over his decision, but in June 835 he summoned Bernard and Berengar to an Assembly in Cremieux, near Lyon, where he would