In 1822, José Luís' family declared for Prince Dom Pedro (later Emperor Dom Pedro I), the leader in the struggle for Brazilian independence which eventually gave rise to the Empire of Brazil.
José Luís' family did not fully comply with the orders.