Vasco da Gama's achievement completed the exploratory efforts inaugurated by Henry the Navigator, and opened an oceanic route for the profitable spice trade into Europe that bypassed the Middle East.
These events, and those that occurred at the end of the House of Aviz and the period of the Iberian Union, led Portugal to a state of dependency on its colonies, first India and then Brazil.
Due to complexity in the management of government affairs, the Spanish Monarch established auxiliary bodies called Councils (Consejos), dedicated to providing advice toward resolution of problems.
So, Spain left the administration of Portugal and its empire largely to the Portuguese themselves, under general supervision from Madrid channeled through a viceroy in Lisbon.
War with the Dutch led to invasions of many countries in Asia, including Ceylon (today's Sri Lanka), and commercial interests in Japan, Africa (Mina), and South America.
By a series of successful expeditions, he gradually extended the Dutch possessions from Sergipe on the south to São Luís de Maranhão in the north.
He likewise conquered the Portuguese possessions of Elmina Castle, Saint Thomas, and Luanda, Angola, on the west coast of Africa.
The large area of Bahia and its city, the strategically important Salvador, was recovered quickly by a powerful Iberian military expedition in 1625.
The other smaller, less developed areas were recovered in stages and relieved of Dutch piracy in the next two decades by local resistance and Portuguese expeditions.
They, together with several associates, killed Secretary of State Miguel de Vasconcelos and imprisoned the king's cousin, the Duchess of Mantua, who had governed Portugal in his name.
[8] Next, the king created the Junta of the Frontiers, to take care of the fortresses near the border, the hypothetical defense of Lisbon, and the garrisons and sea ports.
John IV also organized the army, established the Military Laws of King Sebastian, and developed intense diplomatic activity focused on restoring good relations with England.