County of Empúries
The County of Empúries (, ), also known as the County of Ampurias (), was a medieval county centred on the town of Empúries and enclosing the Catalan region of Peralada. It corresponds to the historic "comarca" of Empordà. After the Franks conquered the regions in 785, Empúries and Peralada came under the authority of the County of Girona. Around 813, Empúries, with Peralada, became a separate county under Ermenguer. He and the other early counts were probably of Visigothic origin. In 817, Empúries was merged with the County of Roussillon, a union which lasted until 989. One of the  ninth-century counts of Empúries assembled a fleet powerful enough to conquer the Balearic Islands, but only for a brief time. From 835 to 844, Sunyer I ruled Empúries and Peralada while Alaric I ruled Roussillon and Vallespir. At the death of Gausfred I in 989, Roussillon and Empúries were separated. Gausfred's elder son Hugh I received Empúries while Giselbert I received Roussillon. Hugh's comital dynasty lasted until 1322, when Empúries passed to a collateral branch of his family. The last count, Hugh VI, sold the county to Peter IV of Ribagorza in 1325 in exchange for the  barony of Pego and the towns of Xaló and Laguar, all located within the Kingdom of Valencia. Peter later traded it with Ramon Berenguer d'Aragona for the county of Prades in 1341. From that point on, Empúries was an apanage of the Crown of Aragon. In a letter of December 1002, Pope Sylvester II confirmed the county of Empúries and the "county of Pedralbes" as a part of the diocese of Girona. The latter is probably to be identified with the Peralada region in the north of Empúries. A portion of the "taxes of the port", consisting of dues and  anchorage, were passed on to the diocese.