Similarly, it was the residence of General Beresford following the Peninsular Warm, and during the Siege of Porto (1832), King Peter IV used the palace as his headquarters for four months. In 1861, though, there was a promissory note to sell the palace by D. Pedro V.