India was transformed from being an importer of raw materials to an exporter of finished goods in the late 19th century.