Pezzoli in his testament left the house and contents to the Brera Academy. Giuseppe Bertini, director of the Academy, opened the museum on 25 April 1881. During World War II, the palazzo suffered severe damage, but the artworks had been placed in safe storage.