During the 15th and 16th centuries, Almeria was frequently attacked by Berber pirates and needed buildings that could provide a safe haven to the local people....