between 1834 and 1837, following the death of the second viscount, the spaces were used provisionally to house the "academia politécnica do porto" ("poly-technic academy of porto"), while the old academy was occupied by the military hospital, during the liberal wars.