during the course of the peninsular wars, in 1808, the building became the official residence of the corregedor-mor tamboreau and general marquez de valladares, and in the following year (1809) the residences of general soult and, later, headquarters of general wellesley.