The economic history of Brazil covers various economic events and traces the changes in the Brazilian economy over the course of the history of Brazil. Portugal, which first colonized the area in the 16th century, enforced a colonial pact with Brazil, an imperial mercantile policy, which drove development for the subsequent three centuries. Independence was achieved in 1822. Slavery was fully abolished in 1888. Important structural transformations began in the 1930s, when important steps were taken to change Brazil into a modern, industrialized economy.