However, all sources agree that the Banu Khazraj and Banu Aus became hostile to each other.
During the battle, The Banu Nadir and the Banu Qurayza fought on the side of the Banu Aus, while the Banu Qaynuqa were allied with the Banu Khazraj. The latter were defeated after a long and desperate battle..
Abd-Allah ibn Ubaiy, their chief, is said to have ploted against Muhammad.
After this, Banu Khazraj and others became known as the Ansar.
In 1228 Ibn Alahmar gathered the remains of the muslim population cornered in Granada and established Almamlika Alnasria derived from the Ansar of Mecca whom he claimed direct lineage to. the Nasrids. With the Reconquista in full swing after the conquest of Cordoba in 1236, the Nasrids aligned themselves with Ferdinand III of Castile, officially becoming a tributary state in 1238. The state officially becoming the Kingdom of Granada in 1238. The Nasrids had to turn there backs against the muslims of Cordoba and Seville in order to survive the reconquest.
Initially the kingdom of Granada linked the commercial routes from Europe with those of the Maghreb. The territory constantly shrank, however, and by 1492, Granada controlled only a small territory on the Mediterranean coast. Arabic was the official language, and was the mother tongue of the majority of the population.
Granada was held as a vassal to Castille for many decades, and provided trade links with the muslim world, particularly the gold trade with the sub-saharan areas south of Africa. The Nasrids also provided troops for Castille while the kingdom was also a source of mercenary fighters from North Africa. However, Portugal discovered direct the African trade routes by sailing around the coast of West Africa. Thus Granada became less and less important for Castille and with the unification of Castille and Aragon in 1479, those kingdoms set their sights on conquering Granada and Navarre.
On January 2 1492, the last Muslim leader, Muhammad XII, known as Boabdil to the Spanish, surrendered complete control of Granada, to Ferdinand and Isabella, Los Reyes Católicos ("The Catholic Monarchs"), after the city was besieged.
See Nasrid dynasty for a full list of the Nasrid rulers of Granada. The most prominent members of the dynasty were: