The garden was founded on October 17, 1755, by King Ferdinand VI, and installed in the Orchard of Migas Calientes, near what today is called Puerta de Hierro, on the banks of the Manzanares River. It contained more than 2,000 plants collected by José Quer y Martínez, botanist and surgeon. In 1774 King Charles III ordered the garden moved to its current location on the Paseo del Prado. This new site opened in 1781. Inside an area defined by wrought iron fencing, the design by architects Francesco Sabatini and Juan de Villanueva organized the garden into three tiered terraces, arranging plants according to the method of Linnaeus. Its mission was not only to exhibit plants, but also to teach botany, promote expeditions for the discovery of new plant species and classify them. There was a particular interest in the botany of Spain's colonial possessions. The garden was greatly augmented by a collection of 10,000 plants brought to Spain by Alessandro Malaspina in 1794. The Spanish War of Independence in 1808 caused the garden to be abandoned, but in 1857 director Mariano de la Paz Graëlls y de la Aguera revived it with a new greenhouse and refurbishment of the upper terrace. Under his leadership a zoo was created in the garden, but subsequently relocated to the Parque del Buen Retiro. Between 1880 and 1890 the garden suffered heavy losses, first losing 2 hectares (4.9 acres) to the Ministry of Agriculture in 1882, then losing 564 trees in 1886 to a cyclone. Since 1939 the garden has been dependent on the Spanish National Research Council (CSIC) and in 1942 was declared Artistic Garden. In 1974, after decades of hardship and neglect, the garden was closed to the public for restoration work to its original plan. It reopened in 1981.