Designed as a palace and fortress for the Moorish monarchs of Granada, the Alhambra is surrounded by a heavily fortified wall ---- a mile in perimetre.