I want to know the answer to the following question:
After King Ferdinand died, who remained under Spanish rule?
All the background I'm provided with is that "The captaincies they created were subdued to a centralized administration in Salvador (later relocated to Rio de Janeiro) which reported directly to the Portuguese Crown until its independence in 1822, becoming the Empire of Brazil.". Is that enough to answer the question?
Answer: no