Originally the museum was an horse riding school, then the location of the University. The Archeological Museum was inaugurated in 1816 and nowadays it’s one of the most important museums of the world because of the quality and quantity of works exposed.
http://www.visitnaples.eu/en/diario-di-viaggio/discover-naples/top-10-things-to-do-naples/