Viceroy in India
On 25 March 1505, Francisco de Almeida was appointed as Viceroy of India, on the condition that he would set up four forts on the southwestern Indian coast: at Anjediva Island, Cannanore, Cochin, and Quilon.
On 13 September, Francisco de Almeida reached Anjediva Island, where he immediately started the construction of Fort Anjediva. On 23 October, he started, with the permission of the friendly ruler Kōlattiri, the building of St. Angelo Fort in Cannanore, leaving Lourenço de Brito in charge with 150 men and two ships.
Francisco de Almeida then reached Cochin on 31 October 1505, with only eight vessels left. There he learnt that the Portuguese traders at Quilon had been killed. He decided to send his son Lourenço with 6 ships, who wantonly destroyed 27 Calicut vessels in the harbour of Quilon. Almeida took up residence in Cochin. He strengthened the Portuguese fortifications of Fort Manuel on Cochin.
The Zamorin of Calicut prepared a large fleet of 200 ships to oppose the Portuguese, but in March 1506 De Almeida's son Lourenço de Almeida intercepted Zamorin's fleet in a sea battle at the entrance to the harbour of Cannanore, the Battle of Cannanore, and inflicted heavy losses. Hereupon Lourenço de Almeida explored the coastal waters southwards to Colombo, in modern-day Sri Lanka. Meanwhile, the Zamorin succeeded in convincing the Kōlattiri of Cannanore of the true imperialistic motives of Portuguese in Kerala. The Kōlattiri was already annoyed and angered with the Portuguese for their violation of the safe conduct guaranteed to the ships of Muslim merchants of Cannanore. The Kōlattiri joined the fight against the Portuguese, besieging Fort St. Angelo at the Siege of Cannanore.
In 1507, Almeida's mission was strengthened by the arrival of Tristão da Cunha's squadron. Afonso de Albuquerque's squadron had, however, split from that of Cunha off east Africa and was independently conquering territories to the west.
In March 1508, at the request of the Arab merchants of Calicut, a Mamluk Egyptian fleet under the command of Amir Husain Al-Kurdi (Mir Hussain) attacked and defeated the Portuguese squadron under command of Lourenço de Almeida at Chaul in the Battle of Chaul. Lourenço de Almeida was killed in this battle and this led to a temporary retreat by the Portuguese from Indian waters.
Afonso de Albuquerque arrived at Cannanore at the close of 1508 and immediately made known a hitherto secret commission he had received from the King empowering him as governor to replace Almeida at the end of his term as viceroy. Almeida, determined to avenge the death of his son and free the Portuguese prisoners taken at Chaul, refused to recognize Albuquerque's credentials immediately, and later arrested him.
In 1509, Almeida became the first Portuguese to arrive by ship in Bombay. He sought Meliqueaz, to whom he had written a menacing letter, and the Mamluk Mirocem, fiercely engaging them at the naval Battle of Diu on 3 February 1509 commanding a fleet of 23 ships near the port of Diu. He inflicted a decisive defeat on a joint fleet from the Mamluk Sultanate, the Ottoman Empire, the Zamorin of Calicut, and the Sultan of Gujarat, with technical naval support from the Republic of Venice and the Republic of Ragusa (Dubrovnik), which feared for their eastern trade links.
His victory was decisive: the Ottomans and Egyptians left the Indian Ocean, enabling a Portuguese trade monopoly over Indian waters for over 100 years, into the 17th century when it was ended by the Dutch and English. Albuquerque was released after three months' confinement, on the arrival of the grand-marshal of Portugal with a large fleet, in November 1509.