The Pinacoteca is housed in the Palazzo dell'Ambrosiana, commissioned by Federico Borromeo (1605) to contain the first public library in Europe, which to this day is home to Leonardo da Vinci’s Codex Atlanticus and an Academy of Painting.