 During the War of the Spanish Succession, Guadalajara was sacked.Ravaged by the "Austracist" army, a largely ruined Guadalajara hit then its lowest demographic point, with only 2,200 inhabitants.Philip V ordered the establishment of the Real Fábrica de Paños (Royal Factory of Clothes), which was opened in the city in 1719 in the Palacio del Marqués de Montesclaros.