 The advent of manufacturing before the 1840s was extremely limited, due to the self-sufficiency of the rural regions, where farms producing coffee and sugar cane also produced their own food, clothes, equipment, etc, the lack of capital, and high costs of production that made it impossible for Brazilian manufacturers to compete with foreign products.Costs were high because most raw materials were imported, even though some of the plants already used machines.From a colony whose aim was to export primary goods (sugar, gold and cottom), Brazil has managed to create a diversified industrial base in the XX century.