Having been a relatively prosperous commercial and industrial centre for most of the 19th century, Málaga province experienced a severe economic contraction in the 1880s and 1890s. It led to the end of the iron industry in 1893, and weakened the trade and textile industry. The agricultural sector suffered a deep depression that affected the raising of livestock and all the major crops, especially cultivation of Vitis vinifera, a grape used for the wine industry, which was devastated by a Phylloxera epidemic.