 The structure was commanded by Charles V, Holy Roman Emperor, who wished to establish his residence close to the Alhambra palaces.Although the Catholic Monarchs had already altered some rooms of the Alhambra after the conquest of the city in 1492, Charles V intended to construct a permanent residence befitting an emperor.The project was given to Pedro Machuca, an architect whose biography and influences are poorly understood.