Portugal colonized Brazil for over 300 years, profoundly shaping Brazil's culture, language, religion, and economy. Portugal established Portuguese as Brazil's dominant language and spread Christianity throughout Brazil. The colonization also led to the growth of the slave trade as Portuguese colonists developed large sugar plantations and mines, importing African slaves as laborers. When Brazil gained independence from Portugal in 1822, it had built close economic and cultural ties with its former colonizer through trade and shared heritage.