Besalú was reconquered from the Moors by 785 [REF].
In the Ordinatio Imperii of 817, Louis the Pious made it a part of Aquitaine and ruled it directly along with the other maritime counties of the Marca: Roussillon, Girona, Barcelona, and Empúries [REF].