wˈɔːɹɪŋ wɪððɪ ˈɔlmoʊhˌæd fˈoːɹsᵻz ɐtˈɛmptɪŋ tə ɹᵻstˈoːɹ kəntɹˈoʊl ˌoʊvɚɹ ældʒˈɪɹiə fɔːɹ θˈɜːtiːn jˈɪɹz, ðeɪ dᵻfˈiːɾᵻd ðɪ ˈɔlmoʊhˌædz ɪn wˈʌn θˈaʊzənd tˈuːhˈʌndɹɪd fˈoːɹɾi ˈeɪt ˈæftɚ kˈɪlɪŋ ðɛɹ kˈeɪlɪf ɪn ɐ səksˈɛsfəl ˈæmbʊʃ nˌɪɹ ˈaʊdʒdə.
Warring with the Almohad forces attempting to restore control over Algeria for 13 years, they defeated the Almohads in 1248 after killing their Caliph in a successful ambush near Oujda.