The conflict was resolved in 1278 with the mediation of the king of Aragon, Peter III, between the bishop and the count, by the signing of the first paréage, which provided that Andorra's sovereignty be shared between the count of Foix (whose title would ultimately transfer to the French head of state) and the bishop of Urgell, in Catalonia.
ðə kˈɑːnflɪkt wʌz ɹᵻzˈɑːlvd ɪn wˈʌn θˈaʊzənd tˈuːhˈʌndɹɪd sˈɛvənti ˈeɪt wɪððə mˌiːdɪˈeɪʃən ʌvðə kˈɪŋ ʌv ˈæɹæɡən, pˈiːɾɚ ɹˌoʊmən θɹˈiː, bᵻtwˌiːn ðə bˈɪʃəp ænd ðə kˈaʊnt, baɪ ðə sˈaɪnɪŋ ʌvðə fˈɜːst pˈɑːɹɹeɪɪdʒ, wˌɪtʃ pɹəvˈaɪdᵻd ðæt ˈændɔɹəz sˈɑːvɚɹˌɪnti biː ʃˈɛɹd bᵻtwˌiːn ðə kˈaʊnt ʌv fwˈɑː hˌuːz tˈaɪɾəl wʊd ˈʌltᵻmətli tɹˈænsfɜː tə ðə fɹˈɛntʃ hˈɛd ʌv stˈeɪt ænd ðə bˈɪʃəp ʌv ˈɜːdʒɛl, ɪn kˌæɾɐlˈoʊniə.