<human>:  What year did Brazil become independent?
<bot>: Brazil became independent from Portugal in 1822. The country was a colony of Portugal for over 300 years. In 1822, the Portuguese government granted Brazil its independence, and the country became a republic.