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. List of counts Ermenguer 813–817 Gaucelm 817–832 (united to Roussillon) Berengar the Wise 832–835 Sunyer I 835–841 (united to Roussillon) 841–844 Sunyer I 844–848, again William 848–850 (united to Roussillon) Odalric 852–858 (united to Roussillon) Humfrid 858–862 (united to Roussillon) Sunyer II 862–915 (united to Roussillon) Dela 862–894, associated Gausbert 915–931 (united to Roussillon and Perelada as a county) Bencion 915–916, associated Gausfred I 931–989 Hugh I 989/91–1040 1040–1078 (transferred Perelada, as a viscountcy, to his son ) Hugh II 1078–1116 1116–1154, also as Ponç Hug I 1154–1173 1173–1200 1173–1175, associated, also known as Ponç Hug