ɪt lˈɔst ɪmpˈoːɹtəns ˈiːvən mˈoːɹ wɛn ˌændɐlˈuːʒə fˈɛl ˌʌndɚɹ ɪslˈɑːmɪk ɹˈuːl ɪnðə mˈɪdəl ˈeɪdʒᵻz, ænd æt ðə sˈeɪm tˈaɪm ðə nˈɪɹbaɪ vˈɪlɪdʒ ʌv lˈɪnɛɹz ɡɹˈuː bɪkˈʌz ʌv ɪts stɹˈɔŋ kˈæsəl —fˈɜːst bˈɪlt æz ɐn ˈæɹəb fˈɔːɹtɹəs, ðˈɛn ɹᵻbˈɪlt baɪ ðə kɹˈɪstʃənz ˈæftɚ ðə ɹˌiːkəŋkwˈɪstə— ˌoʊvɚlˈʊkɪŋ ðə sˈɪɾi.
It lost importance even more when Andalusia fell under Islamic rule in the Middle Ages, and at the same time the nearby village of Linares grew because of its strong castle —first built as an Arab fortress, then rebuilt by the Christians after the Reconquista— overlooking the city.