How come Brazil stayed whole after they declared their independence while the land owned by the Spanish became separate countries?

by Jjum1

I always wondered why Brazil stayed whole while the Spanish land became separated after there independence was declared. Thank you to anyone who can answer this question.

Diupa