The Emirate of Granada, also known as the Nasrid Kingdom of Granada, was an Islamic polity in the southern Iberian Peninsula during the Late Middle Ages, ruled by the Nasrid dynasty. It was the last independent Muslim state in Western Europe.
Muslims had been present in the Iberian Peninsula, which they called Al-Andalus, since 711. By the late 12th century, following the expansion of Christian kingdoms in the north, the area of Muslim control had been reduced to the southern parts of the peninsula governed by the Almohad Caliphate. After Almohad control retreated in 1228, the ambitious Muhammad I Ibn al-Ahmar rose to power and established the Nasrid dynasty in control of a sizeable portion of this territory, roughly corresponding to the modern Spanish provinces of Granada, Almería, and Málaga. By 1250, the Nasrid emirate was the last independent Muslim polity in the peninsula.