sentences:  Though Palmares was eventually defeated and its inhabitants dispersed among the country, the formative period allowed for the continuation of African traditions and helped create a distinct African culture in Brazil.Brazil achieved independence from Portugal in 1822.However, the complete collapse of colonial government took place from 1821–1824.