Loja (Spanish pronunciation: [ˈloxa]), formerly Loxa,[3] is a town in southern Spain, situated at the western limit of the province of Granada.
[3] As part of the Granada War, Loja was attacked in 1486 by Christian forces under Ferdinand and Isabella.
[1] In 1491 work began on the Church of the Incarnation on the site of the town's main mosque.
The town was the centre of the Loja uprising in 1861, led by local Rafael Pérez del Álamo [es], that was quickly suppressed.
The town's Islamic heritage is still evident in the quarter of the Alcazaba, a Moorish fortress of which most of the walls and towers remain.