Kingdom of Valencia
In the early modern period (16th and 17th centuries) it was the residence of the viceroys of Valencia, and also headquarters of the "Cancelleria Reial" (Royal Chancery) of the kingdom of Valencia archive, created by Alfonso the Magnanimous, and originating part of the current Archive of the Kingdom of Valencia. Subsequently, in the 18th century, after the Nueva Planta decree, it also served as the residence of the captain generals.