His father fled Napoleon, Pedro I was a child when his family fled to Brazil.
He declared independence pressured by the nobles in Brazil who were opposed to restrictions coming from Portugal that limited their commerce to Portugal only and no other countries.