Although of Gothic origin, this palace takes its current configuration in the 18th century. The sixth count of Cervelló, Felipe Carlos Osorio, gave it to the municipal government when he moved to live in Madrid.

During the 19th century it was the Military Captaincy and Royal Residence, when the old Royal Palace located in the Viveros gardens was demolished during the War of Independence (1810). It was the residence of Marshal Suchet during the Napoleonic invasion and later Fernando VII signed here the decree of repeal of the Cortes of Cádiz, in 1814. The regent María Cristina also signed her abdication here in 1840, going into exile and leaving her daughter Isabel. under the mentorship of Espartero.

In 1936 it was the headquarters of the Communist Party and, after the Civil War, it was the headquarters of the O.J.E., the Triunfo and Cid academies, and the "La Vasca" pension. In 1976 it became the property of the City Council and in 2003 it was inaugurated as a Municipal Historical Archive.