Emirate of Granada
In 1462 Gibraltar was captured by Juan Alonso de Guzmán, 1st Duke of Medina Sidonia, from the Emirate of Granada.