Did Portuguese explorers sign agreements between the local rulers and the Portuguese King to establish trading post in India Persia and Southeast Asia

Yes, Portuguese explorers did sign agreements with local rulers and the Portuguese King to establish trading posts in India, Persia, and Southeast Asia. One of the most famous examples is the Treaty of Tordesillas, signed in 1494 between Spain and Portugal, which divided the newly discovered territories outside Europe between the two countries. This treaty allowed the Portuguese to establish trading posts in various parts of Asia, including India, Persia, and Southeast Asia. Additionally, Portuguese explorers such as Vasco da Gama and Pedro Álvares Cabral signed agreements with local rulers along the way to secure trading rights and establish Portuguese presence in these regions.